Browse Source

Add spec description

pull/448/head
baarkerlounger 3 years ago
parent
commit
66484e3a8c
  1. 8
      spec/controllers/users_controller_spec.rb

8
spec/controllers/users_controller_spec.rb

@ -10,9 +10,11 @@ RSpec.describe UsersController, type: :controller do
end end
describe "GET #edit_password" do describe "GET #edit_password" do
it "returns not found" do context "when trying to view the edit page for another user in your organisation" do
get :edit_password, params: params it "does not let you and returns not found" do
expect(response).to have_http_status(:not_found) get :edit_password, params: params
expect(response).to have_http_status(:not_found)
end
end end
end end
end end

Loading…
Cancel
Save