Commit 13baad36 authored by jhampton's avatar jhampton

Fixes rubocop offenses

- Fixes multiple hooks within the same group
- Omits the default 'each'
parent 1bf28d48
......@@ -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
......
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