mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-10 16:54:38 -04:00
Swap to modern expect style
This commit is contained in:
@@ -18,8 +18,8 @@ describe PlantPart do
|
||||
@h2 = create(:harvest,
|
||||
crop: @maize,
|
||||
plant_part: @pp1)
|
||||
@pp1.crops.should include @tomato
|
||||
@pp1.crops.should include @maize
|
||||
expect(@pp1.crops).to include @tomato
|
||||
expect(@pp1.crops).to include @maize
|
||||
end
|
||||
|
||||
it "doesn't duplicate crops" do
|
||||
@@ -31,6 +31,6 @@ describe PlantPart do
|
||||
@h2 = create(:harvest,
|
||||
crop: @maize,
|
||||
plant_part: @pp1)
|
||||
@pp1.crops.should eq [@maize]
|
||||
expect(@pp1.crops).to eq [@maize]
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user