diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-20 14:34:42 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-20 14:34:42 +0000 |
commit | 9f46488805e86b1bc341ea1620b866016c2ce5ed (patch) | |
tree | f9748c7e287041e37d6da49e0a29c9511dc34768 /spec/models/diff_note_spec.rb | |
parent | dfc92d081ea0332d69c8aca2f0e745cb48ae5e6d (diff) | |
download | gitlab-ce-9f46488805e86b1bc341ea1620b866016c2ce5ed.tar.gz |
Add latest changes from gitlab-org/gitlab@13-0-stable-ee
Diffstat (limited to 'spec/models/diff_note_spec.rb')
-rw-r--r-- | spec/models/diff_note_spec.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/models/diff_note_spec.rb b/spec/models/diff_note_spec.rb index b802c8ba506..65f06a5b270 100644 --- a/spec/models/diff_note_spec.rb +++ b/spec/models/diff_note_spec.rb @@ -287,6 +287,24 @@ describe DiffNote do reply_diff_note.reload.diff_file end end + + context 'when noteable is a Design' do + it 'does not return a diff file' do + diff_note = create(:diff_note_on_design) + + expect(diff_note.diff_file).to be_nil + end + end + end + + describe '#latest_diff_file' do + context 'when noteable is a Design' do + it 'does not return a diff file' do + diff_note = create(:diff_note_on_design) + + expect(diff_note.latest_diff_file).to be_nil + end + end end describe "#diff_line" do |