summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/ci/status/pipeline/success_with_warnings_spec.rb
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-12-08 14:51:38 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-12-12 12:59:01 +0100
commitf0cd73bfadbe9fa27b25473dab61d8c566292392 (patch)
tree65f5a0afaf74f8451ff33c9b4380407bb92025c6 /spec/lib/gitlab/ci/status/pipeline/success_with_warnings_spec.rb
parent23feb6a773a49123c3ece0ff2ed675fd294d8817 (diff)
downloadgitlab-ce-f0cd73bfadbe9fa27b25473dab61d8c566292392.tar.gz
Fix some detailed statuses specs related to abilities
Diffstat (limited to 'spec/lib/gitlab/ci/status/pipeline/success_with_warnings_spec.rb')
-rw-r--r--spec/lib/gitlab/ci/status/pipeline/success_with_warnings_spec.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/lib/gitlab/ci/status/pipeline/success_with_warnings_spec.rb b/spec/lib/gitlab/ci/status/pipeline/success_with_warnings_spec.rb
index 634f80088d5..7e3383c307f 100644
--- a/spec/lib/gitlab/ci/status/pipeline/success_with_warnings_spec.rb
+++ b/spec/lib/gitlab/ci/status/pipeline/success_with_warnings_spec.rb
@@ -2,7 +2,7 @@ require 'spec_helper'
describe Gitlab::Ci::Status::Pipeline::SuccessWithWarnings do
subject do
- described_class.new(double('status'), double('user'))
+ described_class.new(double('status'))
end
describe '#test' do
@@ -29,13 +29,13 @@ describe Gitlab::Ci::Status::Pipeline::SuccessWithWarnings do
end
it 'is a correct match' do
- expect(described_class.matches?(pipeline)).to eq true
+ expect(described_class.matches?(pipeline, double)).to eq true
end
end
context 'when pipeline does not have warnings' do
it 'does not match' do
- expect(described_class.matches?(pipeline)).to eq false
+ expect(described_class.matches?(pipeline, double)).to eq false
end
end
end
@@ -51,13 +51,13 @@ describe Gitlab::Ci::Status::Pipeline::SuccessWithWarnings do
end
it 'does not match' do
- expect(described_class.matches?(pipeline)).to eq false
+ expect(described_class.matches?(pipeline, double)).to eq false
end
end
context 'when pipeline does not have warnings' do
it 'does not match' do
- expect(described_class.matches?(pipeline)).to eq false
+ expect(described_class.matches?(pipeline, double)).to eq false
end
end
end