blob: c8bad5ef105332c5630b76a22cf9ca88c7d9f7bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
require 'spec_helper'
describe AnalyticsBuildSerializer do
let(:resource) { create(:ci_build) }
subject { described_class.new.represent(resource) }
context 'when there is a single object provided' do
it 'contains important elements of analyticsBuild' do
expect(subject).
to include(:name, :branch, :short_sha, :date, :total_time, :url, :author)
end
end
end
|