summaryrefslogtreecommitdiff
path: root/spec/models/note_spec.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2016-05-10 17:41:46 -0500
committerDouwe Maan <douwe@selenight.nl>2016-05-13 17:31:43 -0500
commit99d3e21f19ffb5cccb58fdfeac4fb6174e7e65e2 (patch)
tree3dae33d98b9688a3f7e9a4c923f555920d86652b /spec/models/note_spec.rb
parent5e130c3e39febcd577e61ebd30bd231827d41f2c (diff)
downloadgitlab-ce-99d3e21f19ffb5cccb58fdfeac4fb6174e7e65e2.tar.gz
Extract LegacyDiffNote out of Note
Diffstat (limited to 'spec/models/note_spec.rb')
-rw-r--r--spec/models/note_spec.rb8
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