Commit 2bd2fc20 authored by Kamil Trzciński's avatar Kamil Trzciński

Merge branch 'backstage/gb/add-pipeline-bridge-presenter' into 'master'

Add pipeline bridge presenter

See merge request gitlab-org/gitlab-ce!26911
parents e3c7374a 9fe8106e
# 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