diff options
author | Phil Hughes <me@iamphill.com> | 2016-09-05 09:38:37 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-09-05 09:38:37 +0100 |
commit | c735c53aae8681d95584d921f12020774e4fd23c (patch) | |
tree | b84be165a8ed1f95452253747d2f8d5a0ff6bbf3 /spec/models/build_spec.rb | |
parent | 85f6244ce852fb6b788ea660c7d0cbe14ec10a20 (diff) | |
parent | fe3d94e8e2e3f5d54575a7f16440cc1711617d2b (diff) | |
download | gitlab-ce-build-cancel-spinner.tar.gz |
Merge branch 'master' into build-cancel-spinnerbuild-cancel-spinner
Diffstat (limited to 'spec/models/build_spec.rb')
-rw-r--r-- | spec/models/build_spec.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/spec/models/build_spec.rb b/spec/models/build_spec.rb index ee2c3d04984..c45c2635cf4 100644 --- a/spec/models/build_spec.rb +++ b/spec/models/build_spec.rb @@ -948,15 +948,17 @@ describe Ci::Build, models: true do before { build.run! } it 'returns false' do - expect(build.retryable?).to be false + expect(build).not_to be_retryable end end context 'when build is finished' do - before { build.success! } + before do + build.success! + end it 'returns true' do - expect(build.retryable?).to be true + expect(build).to be_retryable end end end |