diff --git a/spec/requests/organisations_controller_spec.rb b/spec/requests/organisations_controller_spec.rb index 97665f8ca..332e8acb8 100644 --- a/spec/requests/organisations_controller_spec.rb +++ b/spec/requests/organisations_controller_spec.rb @@ -69,6 +69,9 @@ RSpec.describe OrganisationsController, type: :request do get "/organisations/#{specific_organisation.id}/schemes", headers:, params: {} end + before do + get "/organisations/#{specific_organisation.id}/schemes", headers:, params: {} + end it "shows scheme and location download links" do expect(page).to have_link("Download schemes (CSV)", href: schemes_csv_download_organisation_path(specific_organisation, download_type: "schemes")) expect(page).to have_link("Download locations (CSV)", href: schemes_csv_download_organisation_path(specific_organisation, download_type: "locations"))