diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-10 21:45:06 +0200 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-06-13 11:09:19 +0100 |
commit | 421be01dabb13cd1f45d0118b4e1be9d33baef61 (patch) | |
tree | f886bfcadb224a9c8d7cc28ed77ec918e3052f29 /spec/models/build_spec.rb | |
parent | 9281709b41ce5be5637194cda191a6dd76ddd495 (diff) | |
download | gitlab-ce-421be01dabb13cd1f45d0118b4e1be9d33baef61.tar.gz |
Improve design based on review
Diffstat (limited to 'spec/models/build_spec.rb')
-rw-r--r-- | spec/models/build_spec.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/models/build_spec.rb b/spec/models/build_spec.rb index a2e4639dbf7..f25b676651e 100644 --- a/spec/models/build_spec.rb +++ b/spec/models/build_spec.rb @@ -467,6 +467,7 @@ describe Ci::Build, models: true do it 'when assigning valid duration' do build.artifacts_expire_in = '7 days' + is_expected.to be_within(10).of(7.days.to_i) end @@ -477,6 +478,7 @@ describe Ci::Build, models: true do it 'when resseting value' do build.artifacts_expire_in = nil + is_expected.to be_nil end end @@ -486,6 +488,7 @@ describe Ci::Build, models: true do it 'to reset expire_at' do build.keep_artifacts! + expect(build.artifacts_expire_at).to be_nil end end |