From 9533fde01edad8e86f2a18713b9a844787501419 Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Fri, 8 Dec 2023 09:29:43 +0000 Subject: [PATCH] feat: update tests for different user visibility levels --- spec/requests/organisations_controller_spec.rb | 3 +++ 1 file changed, 3 insertions(+) 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"))