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: 8e461f6c6ea1250cdbf4496ec6e63771b46b8717 (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 user' do
    described_class.update!(events)

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