Fixes rubocop offenses

- Fixes multiple hooks within the same group
- Omits the default 'each'
This commit is contained in:
jhampton 2018-12-07 07:30:10 -05:00
parent 1bf28d4808
commit 13baad3666
1 changed files with 0 additions and 4 deletions

View File

@ -405,9 +405,7 @@ describe Projects::JobsController, :clean_gitlab_redis_shared_state do
create(:ci_pipeline_variable, pipeline: pipeline, key: :TRIGGER_KEY_1, value: 'TRIGGER_VALUE_1')
get_show(id: job.id, format: :json)
end
before(:each) do
@first_variable = json_response['trigger']['variables'].first
end
@ -433,9 +431,7 @@ describe Projects::JobsController, :clean_gitlab_redis_shared_state do
create(:ci_pipeline_variable, pipeline: pipeline, key: :TRIGGER_KEY_1, value: 'TRIGGER_VALUE_1')
get_show(id: job.id, format: :json)
end
before(:each) do
@first_variable = json_response['trigger']['variables'].first
end