Skip to content
Snippets Groups Projects
Commit 8f469c33 authored by Lin Jen-Shin's avatar Lin Jen-Shin
Browse files

Multiline for before block

parent 1e3ff09c
No related branches found
No related tags found
1 merge request!5142Add a download buttons for Build Artifacts
Pipeline #
Loading
Loading
@@ -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)
Loading
Loading
@@ -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)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment