Commit 0b3cca56 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Fix rubocop offense in pipeline controller specs 👮

parent be3a0377
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!
......
......@@ -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
......
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