diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-20 23:50:22 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-20 23:50:22 +0000 |
commit | 9dc93a4519d9d5d7be48ff274127136236a3adb3 (patch) | |
tree | 70467ae3692a0e35e5ea56bcb803eb512a10bedb /spec/models/sent_notification_spec.rb | |
parent | 4b0f34b6d759d6299322b3a54453e930c6121ff0 (diff) | |
download | gitlab-ce-9dc93a4519d9d5d7be48ff274127136236a3adb3.tar.gz |
Add latest changes from gitlab-org/gitlab@13-11-stable-eev13.11.0-rc43
Diffstat (limited to 'spec/models/sent_notification_spec.rb')
-rw-r--r-- | spec/models/sent_notification_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/models/sent_notification_spec.rb b/spec/models/sent_notification_spec.rb index aeafb49f8b5..aa515952c2b 100644 --- a/spec/models/sent_notification_spec.rb +++ b/spec/models/sent_notification_spec.rb @@ -72,8 +72,8 @@ RSpec.describe SentNotification do it_behaves_like 'a successful sent notification' - it 'does not set in_reply_to_discussion_id' do - expect(subject.in_reply_to_discussion_id).to be_nil + it 'sets in_reply_to_discussion_id' do + expect(subject.in_reply_to_discussion_id).to eq(note.discussion_id) end end end @@ -212,10 +212,10 @@ RSpec.describe SentNotification do subject { described_class.record_note(note, note.author.id) } - it 'creates a comment on the issue' do + it 'converts the comment to a discussion on the issue' do new_note = subject.create_reply('Test') expect(new_note.in_reply_to?(note)).to be_truthy - expect(new_note.discussion_id).not_to eq(note.discussion_id) + expect(new_note.discussion_id).to eq(note.discussion_id) end end @@ -247,10 +247,10 @@ RSpec.describe SentNotification do subject { described_class.record_note(note, note.author.id) } - it 'creates a comment on the merge request' do + it 'converts the comment to a discussion on the merge request' do new_note = subject.create_reply('Test') expect(new_note.in_reply_to?(note)).to be_truthy - expect(new_note.discussion_id).not_to eq(note.discussion_id) + expect(new_note.discussion_id).to eq(note.discussion_id) end end |