summaryrefslogtreecommitdiff
path: root/spec/models/ci
diff options
context:
space:
mode:
authormfluharty <mfluharty@gitlab.com>2019-04-19 13:19:59 -0600
committermfluharty <mfluharty@gitlab.com>2019-04-19 14:03:53 -0600
commit6b7b07b7ec0bc434716236d18d34c9a4a4d2f2f4 (patch)
tree65275f0892f54e4a86f9b9c82347f2431bfa7c87 /spec/models/ci
parent2c2bd00a6c2f4484ac7ba522b8d6b5fb64304a42 (diff)
downloadgitlab-ce-6b7b07b7ec0bc434716236d18d34c9a4a4d2f2f4.tar.gz
Update specs that use retryable canceled jobs
Specs that test canceled jobs now - expect them not to be retryable or playable - expect them not to show retry buttons Specs that test retryability now - use failed status instead of canceled status
Diffstat (limited to 'spec/models/ci')
-rw-r--r--spec/models/ci/build_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/ci/build_spec.rb b/spec/models/ci/build_spec.rb
index 66be192ab21..7f53b7e7efc 100644
--- a/spec/models/ci/build_spec.rb
+++ b/spec/models/ci/build_spec.rb
@@ -1425,7 +1425,7 @@ describe Ci::Build do
build.cancel!
end
- it { is_expected.to be_retryable }
+ it { is_expected.not_to be_retryable }
end
end
@@ -1955,7 +1955,7 @@ describe Ci::Build do
context 'when build has been canceled' do
subject { build_stubbed(:ci_build, :manual, status: :canceled) }
- it { is_expected.to be_playable }
+ it { is_expected.not_to be_playable }
end
context 'when build is successful' do