diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-01-15 18:10:31 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-01-15 18:10:31 +0300 |
commit | 39a5262a05794d1e83b3927c2f6813c1174688c2 (patch) | |
tree | b8b647a0ac97bc8156f785619bd151bda789773b /spec/services/notes | |
parent | 0e11c62b96a79f7c5b40bb87c752a77f6fd986d0 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/services/notes')
-rw-r--r-- | spec/services/notes/quick_actions_service_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/services/notes/quick_actions_service_spec.rb b/spec/services/notes/quick_actions_service_spec.rb index 64aa845841b..c098500b78a 100644 --- a/spec/services/notes/quick_actions_service_spec.rb +++ b/spec/services/notes/quick_actions_service_spec.rb @@ -153,8 +153,8 @@ RSpec.describe Notes::QuickActionsService do expect(execute(note)).to be_empty end - it 'does not assign the milestone' do - expect { execute(note) }.not_to change { issue.reload.milestone } + it 'assigns the milestone' do + expect { execute(note) }.to change { issue.reload.milestone }.from(nil).to(milestone) end end @@ -195,8 +195,8 @@ RSpec.describe Notes::QuickActionsService do expect(execute(note)).to be_empty end - it 'does not remove the milestone' do - expect { execute(note) }.not_to change { issue.reload.milestone } + it 'removes the milestone' do + expect { execute(note) }.to change { issue.reload.milestone }.from(milestone).to(nil) end end |