diff options
author | Alexandru Croitor <acroitor@gitlab.com> | 2019-04-19 10:55:36 +0300 |
---|---|---|
committer | Alexandru Croitor <acroitor@gitlab.com> | 2019-05-15 10:15:17 +0300 |
commit | a4fbf39eca4518598e893f6f1b81b8b69927c6f9 (patch) | |
tree | c3316c3813ec60b4a14bb05a3eb047d64719f083 /spec/requests | |
parent | 5ec28dc387fb4adc3c5b65ac47819a8663186954 (diff) |
Move issue details to from IssueBasic to Issue entity
Cleanup IssueBasic entity to keep it basic and move extra attributes
to Issue entity which contains more details
Diffstat (limited to 'spec/requests')
-rw-r--r-- | spec/requests/api/issues/get_project_issues_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/api/issues/get_project_issues_spec.rb b/spec/requests/api/issues/get_project_issues_spec.rb index 8771889f7a4..afd5bd2257f 100644 --- a/spec/requests/api/issues/get_project_issues_spec.rb +++ b/spec/requests/api/issues/get_project_issues_spec.rb @@ -160,12 +160,12 @@ describe API::Issues do it 'avoids N+1 queries' do get api("/projects/#{project.id}/issues", user) + create_list(:issue, 3, project: project) + control_count = ActiveRecord::QueryRecorder.new(skip_cached: false) do get api("/projects/#{project.id}/issues", user) end.count - create_list(:issue, 3, project: project) - expect do get api("/projects/#{project.id}/issues", user) end.not_to exceed_all_query_limit(control_count) |