Swap to modern expect style

This commit is contained in:
Daniel O'Connor
2026-04-26 12:55:58 +00:00
parent 4848302eab
commit 7e2d36f99a

View File

@@ -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