diff options
author | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-03-06 21:22:23 +0300 |
---|---|---|
committer | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-03-23 11:11:49 +0300 |
commit | 170e54236999aebcdf1508b47a00f9b692b3f8db (patch) | |
tree | 15c1f273bf6b47171d8f299e56c5cc8ab0c0dcff /spec/serializers/deployment_entity_spec.rb | |
parent | 21e62c9ef96b43af9934a886312d3b930c315cad (diff) |
Fix deployment_entity_spec.rb. It also reads BuildSerializer.
Diffstat (limited to 'spec/serializers/deployment_entity_spec.rb')
-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) } |