Browse Source

correct route

pull/662/head
JG 3 years ago
parent
commit
dc2b7930c1
  1. 4
      spec/requests/schemes_controller_spec.rb

4
spec/requests/schemes_controller_spec.rb

@ -252,7 +252,7 @@ RSpec.describe SchemesController, type: :request do
context "when not signed in" do context "when not signed in" do
it "redirects to the sign in page" do it "redirects to the sign in page" do
get "/schemes/#{specific_scheme.id}" get "/schemes/#{specific_scheme.id}/locations"
expect(response).to redirect_to("/account/sign-in") expect(response).to redirect_to("/account/sign-in")
end end
end end
@ -262,7 +262,7 @@ RSpec.describe SchemesController, type: :request do
before do before do
sign_in user sign_in user
get "/schemes/#{specific_scheme.id}" get "/schemes/#{specific_scheme.id}/locations"
end end
it "returns 401 unauthorized" do it "returns 401 unauthorized" do

Loading…
Cancel
Save