Fix rubocop offenses
This commit is contained in:
parent
3eafffcef0
commit
bbf5bb7070
|
@ -236,7 +236,6 @@ describe API::Runner do
|
|||
end
|
||||
|
||||
context 'when valid token is provided' do
|
||||
|
||||
context 'when Runner is not active' do
|
||||
let(:runner) { create(:ci_runner, :inactive) }
|
||||
|
||||
|
@ -386,14 +385,12 @@ describe API::Runner do
|
|||
request_job
|
||||
|
||||
expect(response).to have_http_status(201)
|
||||
expect(json_response['variables']).to include(
|
||||
{'key' => 'CI_BUILD_NAME', 'value' => 'spinach', 'public' => true},
|
||||
expect(json_response['variables']).to include({ 'key' => 'CI_BUILD_NAME', 'value' => 'spinach', 'public' => true },
|
||||
{ 'key' => 'CI_BUILD_STAGE', 'value' => 'test', 'public' => true },
|
||||
{ 'key' => 'CI_BUILD_TRIGGERED', 'value' => 'true', 'public' => true },
|
||||
{ 'key' => 'DB_NAME', 'value' => 'postgres', 'public' => true },
|
||||
{ 'key' => 'SECRET_KEY', 'value' => 'secret_value', 'public' => false },
|
||||
{'key' => 'TRIGGER_KEY_1', 'value' => 'TRIGGER_VALUE_1', 'public' => false},
|
||||
)
|
||||
{ 'key' => 'TRIGGER_KEY_1', 'value' => 'TRIGGER_VALUE_1', 'public' => false })
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue