mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-26 16:58:26 -04:00
crop compantion tests
This commit is contained in:
1 parent
233c5666ad
commit
c2b4c67077
1 file changed
+8
-1
@@ -3,5 +3,12 @@
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe CropCompanion, type: :model do
|
||||
pending "add some examples to (or delete) #{__FILE__}"
|
||||
it 'has a crop' do
|
||||
cc = CropCompanion.new
|
||||
cc.crop_a = FactoryBot.create :tomato
|
||||
cc.crop_b = FactoryBot.create :maize
|
||||
cc.save!
|
||||
|
||||
expect(cc.crop_a.name).to eq 'tomato'
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user