summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/lib/gitlab/ci/stage/seed_spec.rb2
-rw-r--r--spec/models/ci/build_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/gitlab/ci/stage/seed_spec.rb b/spec/lib/gitlab/ci/stage/seed_spec.rb
index 515e06e38e5..9ecd128faca 100644
--- a/spec/lib/gitlab/ci/stage/seed_spec.rb
+++ b/spec/lib/gitlab/ci/stage/seed_spec.rb
@@ -33,7 +33,7 @@ describe Gitlab::Ci::Stage::Seed do
allow_any_instance_of(Project).to receive(:protected_for?).and_return(true)
end
- it 'returns unprotected builds' do
+ it 'returns protected builds' do
expect(subject.builds).to all(include(protected: true))
end
end
diff --git a/spec/models/ci/build_spec.rb b/spec/models/ci/build_spec.rb
index cab59db3580..1f965cfbede 100644
--- a/spec/models/ci/build_spec.rb
+++ b/spec/models/ci/build_spec.rb
@@ -58,7 +58,7 @@ describe Ci::Build do
it { is_expected.not_to include(job) }
end
- context 'when protected is false' do
+ context 'when protected is nil' do
let!(:job) { create(:ci_build) }
before do