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

build_updater_spec.rb « cycle_analytics « gitlab « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 70886d7b453972b02fd606981246e6d6ac61ebb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
require 'spec_helper'

describe Gitlab::CycleAnalytics::BuildUpdater do
  let(:build) { create(:ci_build) }
  let(:events) { [{ 'id' => build.id }] }

  it 'maps the correct build' do
    described_class.update!(events)

    expect(events.first['build']).to eq(build)
  end
end