From 08a07c2a2229e0727b34ce4543140017837d5e1f Mon Sep 17 00:00:00 2001 From: Bilal Date: Mon, 7 Sep 2020 13:19:46 +0300 Subject: [PATCH] fix specs --- spec/features/user_managing_medical_releases_spec.rb | 12 ++++++------ spec/features/user_managing_misc_releases_spec.rb | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/spec/features/user_managing_medical_releases_spec.rb b/spec/features/user_managing_medical_releases_spec.rb index 7c43ddc..fa25a4e 100644 --- a/spec/features/user_managing_medical_releases_spec.rb +++ b/spec/features/user_managing_medical_releases_spec.rb @@ -197,13 +197,13 @@ feature "User managing medical releases" do expect(page).to have_css('i.fa.fa-check-circle.fa-2x', count: 1) end - scenario "Download All is visible" do + scenario "Download button is visible" do create(:medical_release_with_contract_template, :native, project: project) create(:medical_release_with_contract_template, :non_native, project: project) visit project_medical_releases_path(project) - expect(page).to have_content download_all_button + expect(page).to have_content download_button end scenario "Download action in Manage menu is visible" do @@ -264,7 +264,7 @@ feature "User managing medical releases" do visit project_medical_releases_path(project) - expect(page).not_to have_content download_all_button + expect(page).not_to have_content download_button end scenario "Download action in Manage menu is not visible" do @@ -308,7 +308,7 @@ feature "User managing medical releases" do visit project_medical_releases_path(project) - expect(page).not_to have_content download_all_button + expect(page).not_to have_content download_button end scenario "Download action in Manage menu is not visible" do @@ -341,8 +341,8 @@ feature "User managing medical releases" do private - def download_all_button - 'Download All' + def download_button + 'Download' end def download_action diff --git a/spec/features/user_managing_misc_releases_spec.rb b/spec/features/user_managing_misc_releases_spec.rb index 81beb63..ba6a56b 100644 --- a/spec/features/user_managing_misc_releases_spec.rb +++ b/spec/features/user_managing_misc_releases_spec.rb @@ -62,12 +62,12 @@ feature "User managing misc releases" do sign_in current_user end - scenario "Download All is visible" do + scenario "Download is visible" do create(:misc_release_with_contract_template, :native, project: project) visit project_misc_releases_path(project) - expect(page).to have_content download_all_button + expect(page).to have_content download_button end scenario "Downloading PDF of native misc release is possible" do @@ -145,8 +145,8 @@ feature "User managing misc releases" do private - def download_all_button - 'Download All' + def download_button + 'Download' end def view_release_pdf_link_for(release)