Commit 8f469c33 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Multiline for before block

parent 1e3ff09c
...@@ -671,7 +671,9 @@ describe Ci::Build, models: true do ...@@ -671,7 +671,9 @@ describe Ci::Build, models: true do
describe '#retryable?' do describe '#retryable?' do
context 'when build is running' do context 'when build is running' do
before { build.run! } before do
build.run!
end
it 'returns false' do it 'returns false' do
expect(build.retryable?).to be(false) expect(build.retryable?).to be(false)
...@@ -679,7 +681,9 @@ describe Ci::Build, models: true do ...@@ -679,7 +681,9 @@ describe Ci::Build, models: true do
end end
context 'when build is finished' do context 'when build is finished' do
before { build.success! } before do
build.success!
end
it 'returns true' do it 'returns true' do
expect(build.retryable?).to be(true) expect(build.retryable?).to be(true)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment