Skip to content
Snippets Groups Projects
Commit 0b3cca56 authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Fix rubocop offense in pipeline controller specs :cop:

parent be3a0377
No related branches found
No related tags found
No related merge requests found
class Projects::PipelinesController < Projects::ApplicationController
before_action :whitelist_query_limiting, only: [:create, :retry] # TODO?
before_action :whitelist_query_limiting, only: [:create, :retry]
before_action :pipeline, except: [:index, :new, :create, :charts]
before_action :commit, only: [:show, :builds, :failures]
before_action :authorize_read_pipeline!
Loading
Loading
Loading
Loading
@@ -18,8 +18,8 @@ describe Projects::PipelinesController do
describe 'GET index.json' do
before do
%w(pending running success failed).each_with_index do |status, index|
create_pipeline(status, project.commit("HEAD~#{index}"))
end
create_pipeline(status, project.commit("HEAD~#{index}"))
end
end
 
it 'returns JSON with serialized pipelines', :request_store do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment