diff --git a/spec/controllers/users_controller_spec.rb b/spec/controllers/users_controller_spec.rb index 07aea691d..36d7b8da0 100644 --- a/spec/controllers/users_controller_spec.rb +++ b/spec/controllers/users_controller_spec.rb @@ -10,9 +10,11 @@ RSpec.describe UsersController, type: :controller do end describe "GET #edit_password" do - it "returns not found" do - get :edit_password, params: params - expect(response).to have_http_status(:not_found) + context "when trying to view the edit page for another user in your organisation" do + it "does not let you and returns not found" do + get :edit_password, params: params + expect(response).to have_http_status(:not_found) + end end end end