diff options
Diffstat (limited to 'spec/support/api/milestones_shared_examples.rb')
-rw-r--r-- | spec/support/api/milestones_shared_examples.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/api/milestones_shared_examples.rb b/spec/support/api/milestones_shared_examples.rb index d6439f77408..ce8c2140e99 100644 --- a/spec/support/api/milestones_shared_examples.rb +++ b/spec/support/api/milestones_shared_examples.rb @@ -205,7 +205,7 @@ shared_examples_for 'group and project milestones' do |route_definition| describe "DELETE #{route_definition}/:milestone_id" do it "rejects a member with reporter access from deleting a milestone" do reporter = create(:user) - milestone.parent.add_reporter(reporter) + milestone.resource_parent.add_reporter(reporter) delete api(resource_route, reporter) |