let(:build){create(:ci_build,name: 'test:build')}let(:entity)dodescribed_class.new(build,request: double)enddescribe'#as_json'dosubject{entity.as_json}it'contains build name'doexpect(subject[:name]).toeq'test:build'endit'contains path to the artifacts'doexpect(subject[:path]).toinclude"builds/#{build.id}/artifacts/download"endendend