From f42469baa9eddeff0c08866f7ab64900d664d803 Mon Sep 17 00:00:00 2001 From: elviabth Date: Thu, 18 Jan 2024 16:28:17 +0100 Subject: [PATCH] fix test --- spec/system/agenda_events_settings_spec.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/system/agenda_events_settings_spec.rb b/spec/system/agenda_events_settings_spec.rb index e7f4f6a..1417e5c 100644 --- a/spec/system/agenda_events_settings_spec.rb +++ b/spec/system/agenda_events_settings_spec.rb @@ -6,7 +6,7 @@ let(:organization_logo) { Decidim::Dev.test_file("avatar.jpg", "image/jpeg") } let(:footer_logo) { Decidim::Dev.test_file("avatar.jpg", "image/jpeg") } let(:organization) { create(:organization, logo: organization_logo, official_img_footer: footer_logo, twitter_handler: "twitter", facebook_handler: "") } - let!(:admin) { create(:user, :admin, :confirmed, organization) } + let!(:admin) { create(:user, :admin, :confirmed, organization:) } let!(:newsletter) { create(:newsletter, :sent, total_recipients: 1) } let!(:content_block) do create(:content_block, @@ -151,7 +151,6 @@ expect(page).to have_content("Footer event title #{i}") expect(page).to have_content("Footer event link #{i}") end - expect(page).to have_link("a[href='http://www.example.org/footer']", count: 3) expect(page).to have_css("img[src*='avatar.jpg']", count: 2) expect(page).to have_css("img[src*='city.jpeg']", count: 1)