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

factory_spec.rb « group « status « ci « gitlab « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c67c7ff82710809fdba6a769d3f8cd05fb98fdaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Gitlab::Ci::Status::Group::Factory do
  it 'inherits from the core factory' do
    expect(described_class)
      .to be < Gitlab::Ci::Status::Factory
  end

  it 'exposes group helpers' do
    expect(described_class.common_helpers)
      .to eq Gitlab::Ci::Status::Group::Common
  end

  it 'exposes extended statuses' do
    expect(described_class.extended_statuses)
      .to eq([[Gitlab::Ci::Status::SuccessWarning]])
  end
end