Commit cd449a73 authored by Lin Jen-Shin's avatar Lin Jen-Shin
parent f2969b1b
......@@ -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
......
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