BigW Consortium Gitlab

analytics_build_serializer_spec.rb 390 Bytes
Newer Older
1 2 3 4 5
require 'spec_helper'

describe AnalyticsBuildSerializer do
  let(:resource) { create(:ci_build) }

6 7
  subject { described_class.new.represent(resource) }

8 9
  context 'when there is a single object provided' do
    it 'contains important elements of analyticsBuild' do
10
      expect(subject)
11
        .to include(:name, :branch, :short_sha, :date, :total_time, :url, :author)
12 13 14
    end
  end
end