Commit 0b755415 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Fix manual action entity specs

parent 2aa211fa
...@@ -2,9 +2,10 @@ require 'spec_helper' ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment