Commit 9e324ded authored by Rémy Coutable's avatar Rémy Coutable

Reduce queries in spec/requests/api/merge_requests_spec.rb

This reduces the queries from 97137 to 65136 and the query time from
02:04 to 01:27 in spec/requests/api/merge_requests.rb.
Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent ff26347d
This diff is collapsed.
...@@ -3,6 +3,8 @@ shared_examples 'an unauthorized API user' do ...@@ -3,6 +3,8 @@ shared_examples 'an unauthorized API user' do
end end
shared_examples 'time tracking endpoints' do |issuable_name| shared_examples 'time tracking endpoints' do |issuable_name|
let(:non_member) { create(:user) }
issuable_collection_name = issuable_name.pluralize issuable_collection_name = issuable_name.pluralize
describe "POST /projects/:id/#{issuable_collection_name}/:#{issuable_name}_id/time_estimate" do describe "POST /projects/:id/#{issuable_collection_name}/:#{issuable_name}_id/time_estimate" do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment