Browse Source

checking you cant access schems unathorized

pull/648/head
JG 3 years ago
parent
commit
91719510e8
  1. 5
      spec/requests/organisations_controller_spec.rb

5
spec/requests/organisations_controller_spec.rb

@ -30,6 +30,11 @@ RSpec.describe OrganisationsController, type: :request do
get "/organisations", headers: headers, params: {}
expect(response).to redirect_to("/account/sign-in")
end
it "does not let you see supported housing list" do
get "/organisations/#{organisation.id}/supported-housing", headers: headers, params: {}
expect(response).to redirect_to("/account/sign-in")
end
end
end

Loading…
Cancel
Save