diff options
author | Jarka Košanová <jarka@gitlab.com> | 2019-01-14 13:46:39 +0300 |
---|---|---|
committer | Jarka Košanová <jarka@gitlab.com> | 2019-02-14 17:28:02 +0300 |
commit | 30ab6ee416783cd9481085f021603383eeb4f317 (patch) | |
tree | 4d4f9eee50812ff132125859860077e6364ecb4e /spec/support/shared_examples/issuable_shared_examples.rb | |
parent | 66b20a66f4b25a69ff3f59da855ac2cb38c8bca9 (diff) |
Check issue milestone availability
Add project when creating milestone in specs
We validate milestone is from the same
project/parent group as issuable ->
we need to set project in specs correctly
Improve methods names and specs organization
Diffstat (limited to 'spec/support/shared_examples/issuable_shared_examples.rb')
-rw-r--r-- | spec/support/shared_examples/issuable_shared_examples.rb | 2 |
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 |