diff options
author | Sean McGivern <sean@gitlab.com> | 2017-08-03 18:37:32 +0100 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2017-08-07 11:55:00 +0100 |
commit | ca923d48998294d0903d47aa613862a873341bf1 (patch) | |
tree | 2ffc136d5f4021a6a8615f4350b468ddf16f7eb1 /spec/support | |
parent | 149528f472f3d2f3865ae01c764b81c6a97f9380 (diff) | |
download | gitlab-ce-ca923d48998294d0903d47aa613862a873341bf1.tar.gz |
Create system notes for group milestone changes
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/issuable_shared_examples.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/support/issuable_shared_examples.rb b/spec/support/issuable_shared_examples.rb index 970fe10db2b..42f3b4db23c 100644 --- a/spec/support/issuable_shared_examples.rb +++ b/spec/support/issuable_shared_examples.rb @@ -21,15 +21,15 @@ shared_examples 'system notes for milestones' do create(:group_member, group: group, user: user) end - it 'does not create system note' do + it 'creates a system note' do expect do update_issuable(milestone: group_milestone) - end.not_to change { Note.system.count } + end.to change { Note.system.count }.by(1) end end context 'project milestones' do - it 'creates system note' do + it 'creates a system note' do expect do update_issuable(milestone: create(:milestone)) end.to change { Note.system.count }.by(1) |