2019-10-25 05:06:06 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-04-03 06:20:26 -04:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-24 02:09:01 -04:00
|
|
|
RSpec.describe Ci::BridgePresenter do
|
2020-02-16 22:09:00 -05:00
|
|
|
let_it_be(:project) { create(:project) }
|
|
|
|
let_it_be(:pipeline) { create(:ci_pipeline, project: project) }
|
|
|
|
let_it_be(:bridge) { create(:ci_bridge, pipeline: pipeline, status: :failed) }
|
2019-04-03 06:20:26 -04:00
|
|
|
|
|
|
|
subject(:presenter) do
|
|
|
|
described_class.new(bridge)
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'presents information about recoverable state' do
|
|
|
|
expect(presenter).to be_recoverable
|
|
|
|
end
|
|
|
|
end
|