Commit fff8071a authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Remove a change made by mistake and add routing spec

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 6a98da7c
...@@ -83,11 +83,7 @@ class Projects::PipelinesController < Projects::ApplicationController ...@@ -83,11 +83,7 @@ class Projects::PipelinesController < Projects::ApplicationController
end end
def builds def builds
if @pipeline.sast_artifact render_show
render_show
else
redirect_to pipeline_path(@pipeline)
end
end end
def failures def failures
......
...@@ -640,4 +640,10 @@ describe 'project routing' do ...@@ -640,4 +640,10 @@ describe 'project routing' do
end end
end end
end end
describe Projects::PipelinesController, 'routing' do
it 'to #security' do
expect(get('/gitlab/gitlabhq/pipelines/12/security')).to route_to('projects/pipelines#security', namespace_id: 'gitlab', project_id: 'gitlabhq', id: '12')
end
end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment