diff options
author | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-03-07 03:22:23 +0900 |
---|---|---|
committer | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-03-23 17:11:49 +0900 |
commit | 170e54236999aebcdf1508b47a00f9b692b3f8db (patch) | |
tree | 15c1f273bf6b47171d8f299e56c5cc8ab0c0dcff /spec/serializers | |
parent | 21e62c9ef96b43af9934a886312d3b930c315cad (diff) | |
download | gitlab-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.rb | 9 |
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) } |