Skip to content
Snippets Groups Projects
Commit 6208c24d authored by Kamil Trzcinski's avatar Kamil Trzcinski
Browse files

Move when tests before to make it no conflict with manual-actions

parent 41fa516b
Branches
Tags
1 merge request!5342Use value of `yaml_variables` and `when` from config_processor if undefined
Loading
Loading
@@ -816,4 +816,22 @@ describe Ci::Build, models: true do
end
end
end
describe '#retryable?' do
context 'when build is running' do
before { build.run! }
it 'should return false' do
expect(build.retryable?).to be false
end
end
context 'when build is finished' do
before { build.success! }
it 'should return true' do
expect(build.retryable?).to be true
end
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment