diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-14 12:38:34 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-14 12:38:34 +0300 |
commit | 60e0137c864e26fee0120dc4447bb95acc46ce51 (patch) | |
tree | 98e9bc8f87c048844655bdd587fa782089002215 /spec/models/build_spec.rb | |
parent | 278a0e1a0fb094dc2eceec0d82d9a56be81c8046 (diff) |
Fix specs
Diffstat (limited to 'spec/models/build_spec.rb')
-rw-r--r-- | spec/models/build_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/models/build_spec.rb b/spec/models/build_spec.rb index c07832a4b5f..35554e1e0c0 100644 --- a/spec/models/build_spec.rb +++ b/spec/models/build_spec.rb @@ -415,12 +415,14 @@ describe Ci::Build, models: true do context 'is expired' do before { build.update(artifacts_expire_at: Time.now - 7.days) } - it { is_expected.to be_falsy } + + it { is_expected.to be_truthy } end context 'is not expired' do before { build.update(artifacts_expire_at: Time.now + 7.days) } - it { is_expected.to be_truthy } + + it { is_expected.to be_falsey } end end |