diff options
author | James Edwards-Jones <jedwardsjones@gitlab.com> | 2019-05-13 11:50:23 +0300 |
---|---|---|
committer | James Edwards-Jones <jedwardsjones@gitlab.com> | 2019-05-15 13:36:50 +0300 |
commit | bedb9a3e6d644e4d8c71f92038ce31c9383e0887 (patch) | |
tree | 81f13a4061a2bd00518a975e3e0b11c4c0a3bab3 /spec/controllers/concerns/project_unauthorized_spec.rb | |
parent | 224c01033fa8eafe53dd1b1d2dfdd90605a000bb (diff) |
Avoid passing not_found_or_authorized_proc around
Since this needs to be called on every find_routable!(Project, ...
we can instead move it to a RoutableActions check.
Diffstat (limited to 'spec/controllers/concerns/project_unauthorized_spec.rb')
-rw-r--r-- | spec/controllers/concerns/project_unauthorized_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/concerns/project_unauthorized_spec.rb b/spec/controllers/concerns/project_unauthorized_spec.rb index 57ac00cf4dd..5834b1ef37f 100644 --- a/spec/controllers/concerns/project_unauthorized_spec.rb +++ b/spec/controllers/concerns/project_unauthorized_spec.rb @@ -12,7 +12,7 @@ describe ProjectUnauthorized do render_views - describe '#project_unauthorized_proc' do + describe '.on_routable_not_found' do controller(::Projects::ApplicationController) do def show head :ok |