2019-10-25 09:06:06 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-04-03 10:20:26 +00:00
|
|
|
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
|