summaryrefslogtreecommitdiff
path: root/spec/serializers/note_entity_spec.rb
diff options
context:
space:
mode:
authorClement Ho <clemmakesapps@gmail.com>2018-02-28 18:40:06 +0000
committerClement Ho <clemmakesapps@gmail.com>2018-02-28 18:40:06 +0000
commit9353c5c780c7af6d6ed3d6c501b155f82debc99c (patch)
tree55d87571798f5ff10ee1431a296f1115251f67e9 /spec/serializers/note_entity_spec.rb
parentc287c01821c4db4830dbdd5263907f08c2ed4cc4 (diff)
parente2638c3ff2714e5efd4bc54e64555fc564c84af1 (diff)
downloadgitlab-ce-pipelines_show_refactor.tar.gz
Merge branch 'master' into 'pipelines_show_refactor'pipelines_show_refactor
# Conflicts: # config/webpack.config.js
Diffstat (limited to 'spec/serializers/note_entity_spec.rb')
-rw-r--r--spec/serializers/note_entity_spec.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/serializers/note_entity_spec.rb b/spec/serializers/note_entity_spec.rb
index 3459cc72063..51a8587ace9 100644
--- a/spec/serializers/note_entity_spec.rb
+++ b/spec/serializers/note_entity_spec.rb
@@ -48,4 +48,15 @@ describe NoteEntity do
expect(subject).to include(:system_note_icon_name)
end
end
+
+ context 'when note is part of resolvable discussion' do
+ before do
+ allow(note).to receive(:part_of_discussion?).and_return(true)
+ allow(note).to receive(:resolvable?).and_return(true)
+ end
+
+ it 'exposes paths to resolve note' do
+ expect(subject).to include(:resolve_path, :resolve_with_issue_path)
+ end
+ end
end