Skip to content

Commit

Permalink
add rspec for genus
Browse files Browse the repository at this point in the history
  • Loading branch information
one-m1nd committed Mar 4, 2024
1 parent 9c3719e commit bcf0f53
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions spec/models/genus_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
RSpec.describe Genus, type: :model do
describe '#families' do
subject { Genus.first.families }

it do
expect(subject).to all(be_instance_of(Family))
end
end

describe '#plants' do
subject { Genus.first.plants }

it do
expect(subject).to all(be_instance_of(Plant))
end
end
end

0 comments on commit bcf0f53

Please sign in to comment.