summaryrefslogtreecommitdiff
path: root/spec/models
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-06-15 18:08:43 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-06-15 18:08:43 +0000
commit3caf5a8a007d8d9e9a86b7c847b5d9cfa6d41843 (patch)
tree6831279652bf5379c4650e2fd44c69663e1260c8 /spec/models
parent4774fa00b74a9248b2d14fc424a8c2f1abb0a0de (diff)
downloadgitlab-ce-3caf5a8a007d8d9e9a86b7c847b5d9cfa6d41843.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/ci/pipeline_spec.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/models/ci/pipeline_spec.rb b/spec/models/ci/pipeline_spec.rb
index 650f33b4e33..409affec5a7 100644
--- a/spec/models/ci/pipeline_spec.rb
+++ b/spec/models/ci/pipeline_spec.rb
@@ -121,6 +121,17 @@ describe Ci::Pipeline, :mailer do
end
end
+ describe '.for_iid' do
+ subject { described_class.for_iid(iid) }
+
+ let(:iid) { '1234' }
+ let!(:pipeline) { create(:ci_pipeline, iid: '1234') }
+
+ it 'returns the pipeline' do
+ is_expected.to contain_exactly(pipeline)
+ end
+ end
+
describe '.for_sha' do
subject { described_class.for_sha(sha) }