Commit 9fe8106e authored by Grzegorz Bizon's avatar Grzegorz Bizon

Add pipeline bridge presenter

parent 7700e029
# frozen_string_literal: true
module Ci
class BridgePresenter < CommitStatusPresenter
def detailed_status
@detailed_status ||= subject.detailed_status(user)
end
end
end
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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment