diff options
author | Jan Provaznik <jprovaznik@gitlab.com> | 2018-04-03 16:03:00 +0000 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2018-04-03 16:03:00 +0000 |
commit | 65664c2eaeed853396c97a9b46e404c05209c42e (patch) | |
tree | e903e3afa6fe5c0f3492dc443776ebd1ce8ade57 /spec/serializers/discussion_entity_spec.rb | |
parent | 67ca10f33ec41e7cecac152e016aa2c0956a7586 (diff) | |
download | gitlab-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.rb | 2 |
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) } |