Fix rubocop offenses

This commit is contained in:
Tomasz Maczukin 2017-02-16 01:38:53 +01:00
parent 3eafffcef0
commit bbf5bb7070
No known key found for this signature in database
GPG Key ID: 7E9EB2E4B0F625CD
4 changed files with 16 additions and 19 deletions

View File

@ -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