2019-12-26 22:10:19 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-07-07 11:18:12 +05:30
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe Ci::BridgePresenter do
|
2020-03-09 13:42:32 +05:30
|
|
|
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-07-07 11:18:12 +05:30
|
|
|
|
|
|
|
subject(:presenter) do
|
|
|
|
described_class.new(bridge)
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'presents information about recoverable state' do
|
|
|
|
expect(presenter).to be_recoverable
|
|
|
|
end
|
|
|
|
end
|