Welcome to mirror list, hosted at ThFree Co, Russian Federation.

analytics_build_serializer_spec.rb « serializers « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 94a42ba4ffa2fa78ba39c092b277befcb8fba126 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

require 'spec_helper'

RSpec.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