Commit cd449a73 authored by Lin Jen-Shin's avatar Lin Jen-Shin
parent f2969b1b
...@@ -662,9 +662,7 @@ describe Ci::Build, models: true do ...@@ -662,9 +662,7 @@ describe Ci::Build, models: true do
build.run! build.run!
end end
it 'returns false' do it { expect(build).not_to be_retryable }
expect(build).not_to be_retryable
end
end end
context 'when build is finished' do context 'when build is finished' do
...@@ -672,9 +670,7 @@ describe Ci::Build, models: true do ...@@ -672,9 +670,7 @@ describe Ci::Build, models: true do
build.success! build.success!
end end
it 'returns true' do it { expect(build).to be_retryable }
expect(build).to be_retryable
end
end end
end end
......
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