summaryrefslogtreecommitdiff
path: root/spec/serializers/discussion_entity_spec.rb
diff options
context:
space:
mode:
authorJan Provaznik <jprovaznik@gitlab.com>2018-04-03 16:03:00 +0000
committerFatih Acet <acetfatih@gmail.com>2018-04-03 16:03:00 +0000
commit65664c2eaeed853396c97a9b46e404c05209c42e (patch)
treee903e3afa6fe5c0f3492dc443776ebd1ce8ade57 /spec/serializers/discussion_entity_spec.rb
parent67ca10f33ec41e7cecac152e016aa2c0956a7586 (diff)
downloadgitlab-ce-65664c2eaeed853396c97a9b46e404c05209c42e.tar.gz
Refactor discussions/notes code
Diffstat (limited to 'spec/serializers/discussion_entity_spec.rb')
-rw-r--r--spec/serializers/discussion_entity_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/serializers/discussion_entity_spec.rb b/spec/serializers/discussion_entity_spec.rb
index 7ee8e38af1c..7e19e74ca00 100644
--- a/spec/serializers/discussion_entity_spec.rb
+++ b/spec/serializers/discussion_entity_spec.rb
@@ -6,7 +6,7 @@ describe DiscussionEntity do
let(:user) { create(:user) }
let(:note) { create(:discussion_note_on_merge_request) }
let(:discussion) { note.discussion }
- let(:request) { double('request') }
+ let(:request) { double('request', note_entity: ProjectNoteEntity) }
let(:controller) { double('controller') }
let(:entity) { described_class.new(discussion, request: request, context: controller) }