Fix rubocop offense in pipeline controller specs 👮

This commit is contained in:
Grzegorz Bizon 2018-05-22 14:38:25 +02:00
parent be3a0377da
commit 0b3cca568d
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
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!

View File

@ -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