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

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

require 'spec_helper'

describe Ci::BridgePresenter do
  set(:project) { create(:project) }
  set(:pipeline) { create(:ci_pipeline, project: project) }
  set(:bridge) { create(:ci_bridge, pipeline: pipeline, status: :failed) }

  subject(:presenter) do
    described_class.new(bridge)
  end

  it 'presents information about recoverable state' do
    expect(presenter).to be_recoverable
  end
end