diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-07-07 21:18:54 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-07-07 21:18:54 +0800 |
commit | 8f469c33cc8b90e1bcae8ddd5599ce2a2957a3af (patch) | |
tree | 8ca198e5fedad43df72cd1542642455901898b19 /spec/models | |
parent | 1e3ff09cf3cd78755e83288559cfb1cf0ff6539f (diff) | |
download | gitlab-ce-8f469c33cc8b90e1bcae8ddd5599ce2a2957a3af.tar.gz |
Multiline for before block
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/build_spec.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/models/build_spec.rb b/spec/models/build_spec.rb index cb432a99cd2..47ba4931460 100644 --- a/spec/models/build_spec.rb +++ b/spec/models/build_spec.rb @@ -671,7 +671,9 @@ describe Ci::Build, models: true do describe '#retryable?' do context 'when build is running' do - before { build.run! } + before do + build.run! + end it 'returns false' do expect(build.retryable?).to be(false) @@ -679,7 +681,9 @@ describe Ci::Build, models: true do 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) |