summaryrefslogtreecommitdiff
path: root/spec/serializers
diff options
context:
space:
mode:
authorOswaldo Ferreira <oswaldo@gitlab.com>2017-10-03 18:13:13 -0300
committerOswaldo Ferreira <oswaldo@gitlab.com>2017-10-04 00:09:48 -0300
commit1f54c9216f178e96010b28a74f04bae5848ef15d (patch)
tree7f5b63c6db133916be3cb20d94d30c0c64dc60d3 /spec/serializers
parentccfe6860079c6c75ab5a1f831cd62af0e355331e (diff)
downloadgitlab-ce-1f54c9216f178e96010b28a74f04bae5848ef15d.tar.gz
Reduce method calls while evaluating Projects::MergeRequestsController#show.json36876-mr-show-json-controller-perf-improvements
Diffstat (limited to 'spec/serializers')
-rw-r--r--spec/serializers/merge_request_entity_spec.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/spec/serializers/merge_request_entity_spec.rb b/spec/serializers/merge_request_entity_spec.rb
index a2fd5b7daae..d14cbe5ff92 100644
--- a/spec/serializers/merge_request_entity_spec.rb
+++ b/spec/serializers/merge_request_entity_spec.rb
@@ -11,16 +11,6 @@ describe MergeRequestEntity do
described_class.new(resource, request: request).as_json
end
- it 'includes author' do
- req = double('request')
-
- author_payload = UserEntity
- .represent(resource.author, request: req)
- .as_json
-
- expect(subject[:author]).to eq(author_payload)
- end
-
it 'includes pipeline' do
req = double('request', current_user: user)
pipeline = build_stubbed(:ci_pipeline)