Fix rubocop offense in pipeline controller specs 👮
This commit is contained in:
parent
be3a0377da
commit
0b3cca568d
2 changed files with 3 additions and 3 deletions
|
@ -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!
|
||||
|
|
|
@ -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…
Reference in a new issue