diff options
author | Katarzyna Kobierska <kkobierska@gmail.com> | 2016-08-30 13:03:29 +0200 |
---|---|---|
committer | Katarzyna Kobierska <kkobierska@gmail.com> | 2016-09-07 12:10:49 +0200 |
commit | 1a7a900d8e4a4a3a65b33054168fdd86f252b757 (patch) | |
tree | 8420740a7ddbbdcce6e18141684a2e8cbc326a49 /spec/requests/api/lint_spec.rb | |
parent | 2c8b830fdbf749e8bb7461d5c3ce4699b77ce3ca (diff) | |
download | gitlab-ce-1a7a900d8e4a4a3a65b33054168fdd86f252b757.tar.gz |
Improve code
Diffstat (limited to 'spec/requests/api/lint_spec.rb')
-rw-r--r-- | spec/requests/api/lint_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/requests/api/lint_spec.rb b/spec/requests/api/lint_spec.rb index 5f8c2829dfa..c791b4891b6 100644 --- a/spec/requests/api/lint_spec.rb +++ b/spec/requests/api/lint_spec.rb @@ -15,7 +15,7 @@ describe API::Lint, api: true do expect(response).to have_http_status(200) expect(json_response).to be_an Hash expect(json_response['status']).to eq('valid') - expect(json_response['error']).to eq('') + expect(json_response['errors']).to eq([]) end end @@ -25,7 +25,7 @@ describe API::Lint, api: true do expect(response).to have_http_status(200) expect(json_response['status']).to eq('invalid') - expect(json_response['error']).to eq('Invalid configuration format') + expect(json_response['errors']).to eq(['Invalid configuration format']) end it "responds with errors about invalid configuration" do @@ -33,7 +33,7 @@ describe API::Lint, api: true do expect(response).to have_http_status(200) expect(json_response['status']).to eq('invalid') - expect(json_response['error']).to eq('jobs config should contain at least one visible job') + expect(json_response['errors']).to eq(['jobs config should contain at least one visible job']) end end |