From 66484e3a8c9ee85736fbb5dc6db89f49eb769bd9 Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Tue, 5 Apr 2022 16:40:39 +0100 Subject: [PATCH] Add spec description --- spec/controllers/users_controller_spec.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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