diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-07-13 18:33:50 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-07-13 21:31:16 -0400 |
commit | f3d4767d0c78daf315e6b653bed3a3a3ee308072 (patch) | |
tree | bddd6e6ca56fa486d95187e3e2020b68e25f4512 /spec/models/concerns/mentionable_spec.rb | |
parent | e4c698fd5ce77e46e3851384c14271eb74c3c9ee (diff) | |
download | gitlab-ce-f3d4767d0c78daf315e6b653bed3a3a3ee308072.tar.gz |
Rename `notice_added_references` to `create_new_cross_references!`rs-issue-1773
Diffstat (limited to 'spec/models/concerns/mentionable_spec.rb')
-rw-r--r-- | spec/models/concerns/mentionable_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/models/concerns/mentionable_spec.rb b/spec/models/concerns/mentionable_spec.rb index 82e8a83bb3d..2d6fe003215 100644 --- a/spec/models/concerns/mentionable_spec.rb +++ b/spec/models/concerns/mentionable_spec.rb @@ -29,7 +29,7 @@ describe Issue, "Mentionable" do end end - describe '#notice_added_references' do + describe '#create_new_cross_references!' do let(:project) { create(:project) } let(:issues) { create_list(:issue, 2, project: project) } @@ -40,7 +40,7 @@ describe Issue, "Mentionable" do expect(SystemNoteService).not_to receive(:cross_reference) issue.description = 'New description' - issue.notice_added_references + issue.create_new_cross_references! end it 'notifies new references' do @@ -49,7 +49,7 @@ describe Issue, "Mentionable" do expect(SystemNoteService).to receive(:cross_reference).with(issues[1], any_args) issue.description = issues[1].to_reference - issue.notice_added_references + issue.create_new_cross_references! end end @@ -60,7 +60,7 @@ describe Issue, "Mentionable" do expect(SystemNoteService).not_to receive(:cross_reference) issue.update_attributes(description: 'New description') - issue.notice_added_references + issue.create_new_cross_references! end it 'notifies new references' do @@ -69,7 +69,7 @@ describe Issue, "Mentionable" do expect(SystemNoteService).to receive(:cross_reference).with(issues[1], any_args) issue.update_attributes(description: issues[1].to_reference) - issue.notice_added_references + issue.create_new_cross_references! end end |