Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Edwards-Jones <jedwardsjones@gitlab.com>2019-05-13 11:50:23 +0300
committerJames Edwards-Jones <jedwardsjones@gitlab.com>2019-05-15 13:36:50 +0300
commitbedb9a3e6d644e4d8c71f92038ce31c9383e0887 (patch)
tree81f13a4061a2bd00518a975e3e0b11c4c0a3bab3 /spec/controllers/concerns/project_unauthorized_spec.rb
parent224c01033fa8eafe53dd1b1d2dfdd90605a000bb (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.rb2
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