From b7fe5e156e3d61cfab4e8568e1dd097bfef64ddd Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Tue, 5 Feb 2019 17:18:05 +1300 Subject: [PATCH] Fixed brackets, because ruby needs those sometimes --- spec/models/photo_spec.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/spec/models/photo_spec.rb b/spec/models/photo_spec.rb index 076189bf1..88439fae1 100644 --- a/spec/models/photo_spec.rb +++ b/spec/models/photo_spec.rb @@ -145,12 +145,12 @@ describe Photo do seed.photos << seed_photo end - it { expect(Photo.by_model(Harvest)).to eq[harvest_photo] } - it { expect(Photo.by_model(Planting)).to eq[planting_photo] } - it { expect(Photo.by_model(Seed)).to eq[seed_photo] } + it { expect(Photo.by_model(Harvest)).to eq([ harvest_photo ]) } + it { expect(Photo.by_model(Planting)).to eq([ planting_photo ]) } + it { expect(Photo.by_model(Seed)).to eq([ seed_photo ]) } - it { expect(Photo.by_crop(harvest_crop)).to eq [harvest_photo] } - it { expect(Photo.by_crop(planting_crop)).to eq [planting_photo] } - it { expect(Photo.by_crop(seed_crop)).to eq [seed_photo] } + it { expect(Photo.by_crop(harvest_crop)).to eq([ harvest_photo ]) } + it { expect(Photo.by_crop(planting_crop)).to eq([ planting_photo ]) } + it { expect(Photo.by_crop(seed_crop)).to eq([ seed_photo ]) } end end