debian-mirror-gitlab/spec/presenters/ci/bridge_presenter_spec.rb

16 lines
397 B
Ruby
Raw Normal View History

2019-07-07 11:18:12 +05:30
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