Fix manual action entity specs

This commit is contained in:
Grzegorz Bizon 2017-04-12 15:22:32 +02:00
parent 2aa211fa69
commit 0b75541559

View file

@ -2,9 +2,10 @@ require 'spec_helper'
describe BuildActionEntity do describe BuildActionEntity do
let(:build) { create(:ci_build, name: 'test_build') } let(:build) { create(:ci_build, name: 'test_build') }
let(:request) { double('request') }
let(:entity) do let(:entity) do
described_class.new(build, request: double) described_class.new(build, request: spy('request'))
end end
describe '#as_json' do describe '#as_json' do