diff options
author | Toon Claes <toon@gitlab.com> | 2017-03-03 16:39:29 +0100 |
---|---|---|
committer | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-03-06 14:34:07 +0100 |
commit | 9e942b59720a4e22a16f71de66a8cf4706f3c92b (patch) | |
tree | 3c053311c2dd83492b122166d037caf694dacdab /spec/requests/api/groups_spec.rb | |
parent | f44ab8e8ec49e643cd7fea20092b63e2603bb8bd (diff) | |
download | gitlab-ce-9e942b59720a4e22a16f71de66a8cf4706f3c92b.tar.gz |
Fix all tests
This commit was about 6 commits before squashing, with the main goal to
make all tests green. Now, after pushing this commit we'll see what the
CI has to say about that.
Diffstat (limited to 'spec/requests/api/groups_spec.rb')
-rw-r--r-- | spec/requests/api/groups_spec.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/requests/api/groups_spec.rb b/spec/requests/api/groups_spec.rb index 858eb6a9635..2545da7b1db 100644 --- a/spec/requests/api/groups_spec.rb +++ b/spec/requests/api/groups_spec.rb @@ -77,8 +77,7 @@ describe API::Groups, api: true do build_artifacts_size: 345, }.stringify_keys exposed_attributes = attributes.dup - exposed_attributes['job_artifacts_size'] = exposed_attributes['build_artifacts_size'] - exposed_attributes.delete('build_artifacts_size') + exposed_attributes['job_artifacts_size'] = exposed_attributes.delete('build_artifacts_size') project1.statistics.update!(attributes) @@ -88,7 +87,7 @@ describe API::Groups, api: true do expect(response).to include_pagination_headers expect(json_response).to be_an Array expect(json_response) - .to satisfy_one { |group| group['statistics'] == attributes } + .to satisfy_one { |group| group['statistics'] == exposed_attributes } end end |