diff options
author | Camil Staps <info@camilstaps.nl> | 2019-02-05 15:17:05 +0300 |
---|---|---|
committer | Camil Staps <info@camilstaps.nl> | 2019-08-07 21:49:17 +0300 |
commit | c1126d2b101355c3ae6fe85d1243769d3f7458de (patch) | |
tree | 5b764258ff05c92a1d2c69f1d7cc29bed0faac63 /spec | |
parent | 3123be9fbbc494e45a638f21ed3dcff942cb97c4 (diff) |
Fix test style
Diffstat (limited to 'spec')
-rw-r--r-- | spec/requests/api/projects_spec.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/requests/api/projects_spec.rb b/spec/requests/api/projects_spec.rb index 808c1c993d8..b3e1ff4e647 100644 --- a/spec/requests/api/projects_spec.rb +++ b/spec/requests/api/projects_spec.rb @@ -2178,7 +2178,8 @@ describe API::Projects do expect(response).to have_gitlab_http_status(200) expect(response).to include_pagination_headers expect(json_response).to be_an Array - expect(json_response.map { |p| p['starred_since'].present? && p['user'].present? }) + expect(json_response[0]['starred_since']).to be_present + expect(json_response[0]['user']).to be_present end it 'returns the proper security headers' do @@ -2188,8 +2189,8 @@ describe API::Projects do end end - let (:public_project) { create(:project, :public) } - let (:private_user) { create(:user, private_profile: true) } + let(:public_project) { create(:project, :public) } + let(:private_user) { create(:user, private_profile: true) } before do user.update(starred_projects: [public_project]) |