diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-06-30 19:00:35 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-06-30 19:00:35 +0300 |
commit | 7b06acea1c13b7fa9067902faaed73c7210f4bb3 (patch) | |
tree | 1259a1f1e0f93c05944874a0ac00fb894166fe59 /spec/requests | |
parent | 9d8dca08e440ccb730f20dcd79b3b47aef8aeb2e (diff) |
Use nil for non-existing files rather than 0
Diffstat (limited to 'spec/requests')
-rw-r--r-- | spec/requests/ci/api/builds_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/requests/ci/api/builds_spec.rb b/spec/requests/ci/api/builds_spec.rb index 64cb7dd12d0..666fdbdd2b5 100644 --- a/spec/requests/ci/api/builds_spec.rb +++ b/spec/requests/ci/api/builds_spec.rb @@ -486,7 +486,7 @@ describe Ci::API::API do expect(response).to have_http_status(200) expect(build.artifacts_file.exists?).to be_falsy expect(build.artifacts_metadata.exists?).to be_falsy - expect(build.artifacts_size).to eq(0) + expect(build.artifacts_size).to be_nil end end |