diff options
author | Douwe Maan <douwe@selenight.nl> | 2016-07-07 22:57:38 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2016-07-07 22:57:38 +0300 |
commit | 70a64f6a57a2b4fd2874b0db03f4fe1f0c3794f8 (patch) | |
tree | e3c6db39d18ac4da4aee4956c1c908d37900fb40 | |
parent | 6eb65651a71776725db35528d11f6cef4e0261bf (diff) |
Update test with new factory name
-rw-r--r-- | spec/models/event_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/event_spec.rb b/spec/models/event_spec.rb index 6ac19756f15..b5d0d79e14e 100644 --- a/spec/models/event_spec.rb +++ b/spec/models/event_spec.rb @@ -56,7 +56,7 @@ describe Event, models: true do end context 'merge request diff note event' do - let(:target) { create(:note_on_merge_request_diff) } + let(:target) { create(:legacy_diff_note_on_merge_request) } it { is_expected.to be_note } end @@ -132,7 +132,7 @@ describe Event, models: true do context 'merge request diff note event' do let(:project) { create(:project, :public) } let(:merge_request) { create(:merge_request, source_project: project, author: author, assignee: assignee) } - let(:note_on_merge_request) { create(:note_on_merge_request_diff, noteable: merge_request, project: project) } + let(:note_on_merge_request) { create(:legacy_diff_note_on_merge_request, noteable: merge_request, project: project) } let(:target) { note_on_merge_request } it { expect(event.visible_to_user?(non_member)).to eq true } |