Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-12-13 16:01:17 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-12-13 16:01:17 +0300
commitf4513d5c1981922e71a00b9e4b135605eb674c6f (patch)
treef3627ae77b20bc4f303d8520128f3c925fdd9d9b /spec
parenta9ec4ec07e64d5f823c30d9bcc4c4bb1be7f2d75 (diff)
Make it possible to retry build that was canceled
Diffstat (limited to 'spec')
-rw-r--r--spec/models/build_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/models/build_spec.rb b/spec/models/build_spec.rb
index 2b678355ee5..e9b4cac5fef 100644
--- a/spec/models/build_spec.rb
+++ b/spec/models/build_spec.rb
@@ -918,6 +918,14 @@ describe Ci::Build, models: true do
it { is_expected.to be_retryable }
end
+
+ context 'when build is canceled' do
+ before do
+ build.cancel!
+ end
+
+ it { is_expected.to be_retryable }
+ end
end
context 'when build is not retryable' do