2016-11-14 05:52:29 -05:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe AnalyticsBuildSerializer do
|
|
|
|
let(:resource) { create(:ci_build) }
|
|
|
|
|
2017-01-27 07:02:59 -05:00
|
|
|
subject { described_class.new.represent(resource) }
|
|
|
|
|
2016-11-14 05:52:29 -05:00
|
|
|
context 'when there is a single object provided' do
|
|
|
|
it 'contains important elements of analyticsBuild' do
|
2017-01-27 07:02:59 -05:00
|
|
|
expect(subject)
|
2016-11-15 03:39:45 -05:00
|
|
|
.to include(:name, :branch, :short_sha, :date, :total_time, :url, :author)
|
2016-11-14 05:52:29 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|