Commit 2b5449b9 authored by Kamil Trzcinski's avatar Kamil Trzcinski

Fix Ci::Build#artifacts_expire_in= when assigning invalid duration

parent 3f5819fb
...@@ -474,7 +474,7 @@ describe Ci::Build, models: true do ...@@ -474,7 +474,7 @@ describe Ci::Build, models: true do
end end
it 'when assigning invalid duration' do it 'when assigning invalid duration' do
expect { build.artifacts_expire_in = '7 elephants' }.not_to raise_error expect { build.artifacts_expire_in = '7 elephants' }.to raise_error(ChronicDuration::DurationParseError)
is_expected.to be_nil is_expected.to be_nil
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