diff options
Diffstat (limited to 'spec/controllers')
| -rw-r--r-- | spec/controllers/workbenches_controller_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/controllers/workbenches_controller_spec.rb b/spec/controllers/workbenches_controller_spec.rb index d9403d7b0..8478b0a7b 100644 --- a/spec/controllers/workbenches_controller_spec.rb +++ b/spec/controllers/workbenches_controller_spec.rb @@ -25,8 +25,10 @@ RSpec.describe WorkbenchesController, :type => :controller do } let(:request){ patch :update, id: workbench.id, workbench: workbench_params } - it 'should respond with 403' do - expect(request).to have_http_status 403 + without_permission "workbenches.update" do + it 'should respond with 403' do + expect(request).to have_http_status 403 + end end with_permission "workbenches.update" do |
