diff options
-rw-r--r-- | spec/models/build_spec.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/spec/models/build_spec.rb b/spec/models/build_spec.rb index bd120e84c8f..ac148cec6b0 100644 --- a/spec/models/build_spec.rb +++ b/spec/models/build_spec.rb @@ -662,9 +662,7 @@ describe Ci::Build, models: true do build.run! end - it 'returns false' do - expect(build).not_to be_retryable - end + it { expect(build).not_to be_retryable } end context 'when build is finished' do @@ -672,9 +670,7 @@ describe Ci::Build, models: true do build.success! end - it 'returns true' do - expect(build).to be_retryable - end + it { expect(build).to be_retryable } end end |