summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-12-02 14:21:04 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-12-02 14:23:43 +0100
commitc7c249407e98bf5fc099cd89901e67b000fdf69d (patch)
tree1e9c1deb55637743e2cab577cb758b94b51d6ad6 /spec
parent0c7168b98d69dc4071873a2787e4974a4c24ea20 (diff)
downloadgitlab-ce-c7c249407e98bf5fc099cd89901e67b000fdf69d.tar.gz
Add implementation of common pipeline extended status
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/gitlab/ci/status/extended/pipeline/common_spec.rb23
1 files changed, 23 insertions, 0 deletions
diff --git a/spec/lib/gitlab/ci/status/extended/pipeline/common_spec.rb b/spec/lib/gitlab/ci/status/extended/pipeline/common_spec.rb
index e69de29bb2d..32939800c70 100644
--- a/spec/lib/gitlab/ci/status/extended/pipeline/common_spec.rb
+++ b/spec/lib/gitlab/ci/status/extended/pipeline/common_spec.rb
@@ -0,0 +1,23 @@
+require 'spec_helper'
+
+describe Gitlab::Ci::Status::Extended::Pipeline::Common do
+ let(:pipeline) { create(:ci_pipeline) }
+
+ subject do
+ Gitlab::Ci::Status::Core::Success
+ .new(pipeline).extend(described_class)
+ end
+
+ it 'does not have action' do
+ expect(subject).not_to have_action
+ end
+
+ it 'has details' do
+ expect(subject).to have_details
+ end
+
+ it 'links to the pipeline details page' do
+ expect(subject.details_path)
+ .to include "pipelines/#{pipeline.id}"
+ end
+end