diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-14 14:51:09 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-14 14:51:09 +0200 |
commit | 2b5449b96d1c08eafc3e874f28dd9f85a6b09535 (patch) | |
tree | 09cff111ebc56b5a5c57344560b5eedf5d1e940c /spec | |
parent | 3f5819fb7aa367ac302fe7d62857cfd604b5792f (diff) | |
download | gitlab-ce-2b5449b96d1c08eafc3e874f28dd9f85a6b09535.tar.gz |
Fix Ci::Build#artifacts_expire_in= when assigning invalid durationartifacts-expire-date
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/build_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/build_spec.rb b/spec/models/build_spec.rb index 35554e1e0c0..5d1fa8226e5 100644 --- a/spec/models/build_spec.rb +++ b/spec/models/build_spec.rb @@ -474,7 +474,7 @@ describe Ci::Build, models: true do end 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 end |