summaryrefslogtreecommitdiff
path: root/spec/presenters/ci
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2019-04-03 12:20:26 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2019-04-03 12:25:25 +0200
commit9fe8106e342dc89429d6fc260a5dfb6763cb6c09 (patch)
treec1cdfad371a923d8c8648acdf8c6df494884d97e /spec/presenters/ci
parent7700e0298802857495bd3d0e7601a5d47a7b3335 (diff)
downloadgitlab-ce-9fe8106e342dc89429d6fc260a5dfb6763cb6c09.tar.gz
Add pipeline bridge presenterbackstage/gb/add-pipeline-bridge-presenter
Diffstat (limited to 'spec/presenters/ci')
-rw-r--r--spec/presenters/ci/bridge_presenter_spec.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/presenters/ci/bridge_presenter_spec.rb b/spec/presenters/ci/bridge_presenter_spec.rb
new file mode 100644
index 00000000000..986818a7b9e
--- /dev/null
+++ b/spec/presenters/ci/bridge_presenter_spec.rb
@@ -0,0 +1,15 @@
+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