diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2019-03-04 21:37:15 +0300 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2019-03-04 21:37:15 +0300 |
commit | 025015048f7eaad29ee7816c6040fb3e0c06eb8d (patch) | |
tree | 50d713b293ffd0dee44b715dd9c12621810f8fa5 /spec/controllers/dashboard | |
parent | 6683298fe6d85bb0785906723663482798418907 (diff) | |
parent | 30ab6ee416783cd9481085f021603383eeb4f317 (diff) |
Merge branch 'security-2773-milestones-fix' into 'master'
[master] Check issue milestone availability
See merge request gitlab/gitlabhq!2788
Diffstat (limited to 'spec/controllers/dashboard')
-rw-r--r-- | spec/controllers/dashboard/milestones_controller_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/dashboard/milestones_controller_spec.rb b/spec/controllers/dashboard/milestones_controller_spec.rb index 4b164d0aa6b..ab40b4eb178 100644 --- a/spec/controllers/dashboard/milestones_controller_spec.rb +++ b/spec/controllers/dashboard/milestones_controller_spec.rb @@ -13,7 +13,7 @@ describe Dashboard::MilestonesController do ) end let(:issue) { create(:issue, project: project, milestone: project_milestone) } - let(:group_issue) { create(:issue, milestone: group_milestone) } + let(:group_issue) { create(:issue, milestone: group_milestone, project: create(:project, group: group)) } let!(:label) { create(:label, project: project, title: 'Issue Label', issues: [issue]) } let!(:group_label) { create(:group_label, group: group, title: 'Group Issue Label', issues: [group_issue]) } |