From 7e2d36f99a3df45412dccdb75cadce57a2fd0a56 Mon Sep 17 00:00:00 2001 From: Daniel O'Connor Date: Sun, 26 Apr 2026 12:55:58 +0000 Subject: [PATCH] Swap to modern expect style --- spec/models/plant_part_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/models/plant_part_spec.rb b/spec/models/plant_part_spec.rb index 08a6197bb..6013dd642 100644 --- a/spec/models/plant_part_spec.rb +++ b/spec/models/plant_part_spec.rb @@ -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