Fix deployment_entity_spec.rb. It also reads BuildSerializer.
This commit is contained in:
parent
21e62c9ef9
commit
170e542369
1 changed files with 8 additions and 1 deletions
|
@ -1,8 +1,15 @@
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
||||||
describe DeploymentEntity do
|
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
|
let(:entity) do
|
||||||
described_class.new(deployment, request: double)
|
described_class.new(deployment, request: request)
|
||||||
end
|
end
|
||||||
|
|
||||||
let(:deployment) { create(:deployment) }
|
let(:deployment) { create(:deployment) }
|
||||||
|
|
Loading…
Reference in a new issue