Fix deployment_entity_spec.rb. It also reads BuildSerializer.

This commit is contained in:
Shinya Maeda 2017-03-07 03:22:23 +09:00
parent 21e62c9ef9
commit 170e542369

View file

@ -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) }