Commit ff01b6eb authored by Lin Jen-Shin's avatar Lin Jen-Shin

Resolve spec/support/api/milestones_shared_examples.rb

parent bddc9a74
......@@ -6,21 +6,9 @@ shared_examples_for 'group and project milestones' do |route_definition|
let(:merge_request) { create(:merge_request, source_project: project) }
let(:another_merge_request) { create(:merge_request, :simple, source_project: project) }
<<<<<<< HEAD:spec/requests/api/milestones_spec.rb
before do
project.team << [user, :developer]
stub_licensed_features(issue_weights: false)
end
describe 'GET /projects/:id/milestones' do
it 'returns project milestones' do
get api("/projects/#{project.id}/milestones", user)
=======
describe "GET #{route_definition}" do
it 'returns milestones list' do
get api(route, user)
>>>>>>> upstream/master:spec/support/api/milestones_shared_examples.rb
expect(response).to have_http_status(200)
expect(response).to include_pagination_headers
......
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