From ea261748c3530b7ffa33f3c83dd93d0548596609 Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Sun, 16 Jun 2019 21:14:31 +1200 Subject: [PATCH] Update crop spec to expect the full size photos --- spec/features/crops/crop_photos_spec.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/spec/features/crops/crop_photos_spec.rb b/spec/features/crops/crop_photos_spec.rb index 1507a5a15..e66d645d3 100644 --- a/spec/features/crops/crop_photos_spec.rb +++ b/spec/features/crops/crop_photos_spec.rb @@ -30,18 +30,18 @@ describe "crop detail page", js: true do shared_examples "shows photos" do describe "show planting photos" do - it { is_expected.to have_xpath("//img[contains(@src,'#{photo1.thumbnail_url}')]") } - it { is_expected.to have_xpath("//img[contains(@src,'#{photo2.thumbnail_url}')]") } + it { is_expected.to have_xpath("//img[contains(@src,'#{photo1.fullsize_url}')]") } + it { is_expected.to have_xpath("//img[contains(@src,'#{photo2.fullsize_url}')]") } end describe "show harvest photos" do - it { is_expected.to have_xpath("//img[contains(@src,'#{photo3.thumbnail_url}')]") } - it { is_expected.to have_xpath("//img[contains(@src,'#{photo4.thumbnail_url}')]") } + it { is_expected.to have_xpath("//img[contains(@src,'#{photo3.fullsize_url}')]") } + it { is_expected.to have_xpath("//img[contains(@src,'#{photo4.fullsize_url}')]") } end describe "show seed photos" do - it { is_expected.to have_xpath("//img[contains(@src,'#{photo5.thumbnail_url}')]") } - it { is_expected.to have_xpath("//img[contains(@src,'#{photo6.thumbnail_url}')]") } + it { is_expected.to have_xpath("//img[contains(@src,'#{photo5.fullsize_url}')]") } + it { is_expected.to have_xpath("//img[contains(@src,'#{photo6.fullsize_url}')]") } end describe "link to more photos" do