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 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 :pipeline, except: [:index, :new, :create, :charts]
before_action :commit, only: [:show, :builds, :failures] before_action :commit, only: [:show, :builds, :failures]
before_action :authorize_read_pipeline! before_action :authorize_read_pipeline!

View file

@ -18,8 +18,8 @@ describe Projects::PipelinesController do
describe 'GET index.json' do describe 'GET index.json' do
before do before do
%w(pending running success failed).each_with_index do |status, index| %w(pending running success failed).each_with_index do |status, index|
create_pipeline(status, project.commit("HEAD~#{index}")) create_pipeline(status, project.commit("HEAD~#{index}"))
end end
end end
it 'returns JSON with serialized pipelines', :request_store do it 'returns JSON with serialized pipelines', :request_store do