Commit c315332b authored by Grzegorz Bizon's avatar Grzegorz Bizon

Refine build entity tests a little

parent a2c1178c
require 'spec_helper' require 'spec_helper'
describe BuildEntity do describe BuildEntity do
subject do let(:entity) do
described_class.new(build, request: double).as_json described_class.new(build, request: double)
end end
subject { entity.as_json }
context 'when build is a regular job' do context 'when build is a regular job' do
let(:build) { create(:ci_build) } let(:build) { create(:ci_build) }
......
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