Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2019-04-03 13:20:26 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2019-04-03 13:25:25 +0300
commit9fe8106e342dc89429d6fc260a5dfb6763cb6c09 (patch)
treec1cdfad371a923d8c8648acdf8c6df494884d97e /spec/presenters
parent7700e0298802857495bd3d0e7601a5d47a7b3335 (diff)
Add pipeline bridge presenter
Diffstat (limited to 'spec/presenters')
-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