Commit 0e64286f authored by Robert Speicher's avatar Robert Speicher

Merge branch 'improve-spec-requests-api-merge_requests_spec' into 'master'

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

See merge request gitlab-org/gitlab-ce!26110
parents 4860b2b9 9e324ded
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