summaryrefslogtreecommitdiff
path: root/spec/support/shared_examples
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2019-03-04 18:37:15 +0000
committerYorick Peterse <yorickpeterse@gmail.com>2019-03-04 18:37:15 +0000
commit025015048f7eaad29ee7816c6040fb3e0c06eb8d (patch)
tree50d713b293ffd0dee44b715dd9c12621810f8fa5 /spec/support/shared_examples
parent6683298fe6d85bb0785906723663482798418907 (diff)
parent30ab6ee416783cd9481085f021603383eeb4f317 (diff)
downloadgitlab-ce-025015048f7eaad29ee7816c6040fb3e0c06eb8d.tar.gz
Merge branch 'security-2773-milestones-fix' into 'master'
[master] Check issue milestone availability See merge request gitlab/gitlabhq!2788
Diffstat (limited to 'spec/support/shared_examples')
-rw-r--r--spec/support/shared_examples/issuable_shared_examples.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/shared_examples/issuable_shared_examples.rb b/spec/support/shared_examples/issuable_shared_examples.rb
index c3d40c5b231..d97b21f71cd 100644
--- a/spec/support/shared_examples/issuable_shared_examples.rb
+++ b/spec/support/shared_examples/issuable_shared_examples.rb
@@ -31,7 +31,7 @@ shared_examples 'system notes for milestones' do
context 'project milestones' do
it 'creates a system note' do
expect do
- update_issuable(milestone: create(:milestone))
+ update_issuable(milestone: create(:milestone, project: project))
end.to change { Note.system.count }.by(1)
end
end