diff options
author | Douwe Maan <douwe@selenight.nl> | 2016-05-11 01:41:46 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2016-05-14 01:31:43 +0300 |
commit | 99d3e21f19ffb5cccb58fdfeac4fb6174e7e65e2 (patch) | |
tree | 3dae33d98b9688a3f7e9a4c923f555920d86652b /spec | |
parent | 5e130c3e39febcd577e61ebd30bd231827d41f2c (diff) |
Extract LegacyDiffNote out of Note
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/note_spec.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/spec/models/note_spec.rb b/spec/models/note_spec.rb index 4b788b57882..264888cb376 100644 --- a/spec/models/note_spec.rb +++ b/spec/models/note_spec.rb @@ -43,12 +43,8 @@ describe Note, models: true do expect(note.noteable.id).to eq(commit.id) end - it "should be recognized by #for_diff_line?" do - expect(note).to be_for_diff_line - end - - it "should be recognized by #for_commit_diff_line?" do - expect(note).to be_for_commit_diff_line + it "should be recognized by #legacy_diff_note?" do + expect(note).to be_legacy_diff_note end end |