summaryrefslogtreecommitdiff
path: root/spec/serializers
diff options
context:
space:
mode:
authorShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-03-07 03:22:23 +0900
committerShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-03-23 17:11:49 +0900
commit170e54236999aebcdf1508b47a00f9b692b3f8db (patch)
tree15c1f273bf6b47171d8f299e56c5cc8ab0c0dcff /spec/serializers
parent21e62c9ef96b43af9934a886312d3b930c315cad (diff)
downloadgitlab-ce-170e54236999aebcdf1508b47a00f9b692b3f8db.tar.gz
Fix deployment_entity_spec.rb. It also reads BuildSerializer.
Diffstat (limited to 'spec/serializers')
-rw-r--r--spec/serializers/deployment_entity_spec.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/spec/serializers/deployment_entity_spec.rb b/spec/serializers/deployment_entity_spec.rb
index ea87771e2a2..22b566ec3ca 100644
--- a/spec/serializers/deployment_entity_spec.rb
+++ b/spec/serializers/deployment_entity_spec.rb
@@ -1,8 +1,15 @@
require 'spec_helper'
describe DeploymentEntity do
+ let(:user) { create(:user) }
+ let(:request) { double('request') }
+
+ before do
+ allow(request).to receive(:user).and_return(user)
+ end
+
let(:entity) do
- described_class.new(deployment, request: double)
+ described_class.new(deployment, request: request)
end
let(:deployment) { create(:deployment) }