diff options
author | Oswaldo Ferreira <oswaldo@gitlab.com> | 2018-12-05 01:17:10 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-12-07 04:07:49 +0300 |
commit | 26b94bcc7d510482eea253b02dcc4ff22c48d68a (patch) | |
tree | 68a0f8dddb009b03af5de530fe4feb94a289dc6d /spec/serializers/discussion_entity_spec.rb | |
parent | 9a78524f465488b2b5daa3fbdb2ec7c71c9641a6 (diff) |
Remove unused data from discussions endpoint
We don't need a series of attributes to render diff files on
discussions.json request. Therefore this MR removes lots of unnecessary
attributes from the request, mainly the highlighted diff lines, which
are pretty expensive.
Diffstat (limited to 'spec/serializers/discussion_entity_spec.rb')
-rw-r--r-- | spec/serializers/discussion_entity_spec.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/spec/serializers/discussion_entity_spec.rb b/spec/serializers/discussion_entity_spec.rb index 0590304e832..138749b0fdf 100644 --- a/spec/serializers/discussion_entity_spec.rb +++ b/spec/serializers/discussion_entity_spec.rb @@ -74,13 +74,5 @@ describe DiscussionEntity do :active ) end - - context 'when diff file is a image' do - it 'exposes image attributes' do - allow(discussion).to receive(:on_image?).and_return(true) - - expect(subject.keys).to include(:image_diff_html) - end - end end end |