debian-mirror-gitlab/spec/presenters/ci/bridge_presenter_spec.rb
2020-08-09 17:41:57 +05:30

17 lines
452 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Ci::BridgePresenter do
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) }
subject(:presenter) do
described_class.new(bridge)
end
it 'presents information about recoverable state' do
expect(presenter).to be_recoverable
end
end