summaryrefslogtreecommitdiff
path: root/spec/models/ci
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-01-30 01:56:12 +0900
committerShinya Maeda <shinya@gitlab.com>2018-02-06 15:50:08 +0900
commitc9ed3b2d4d208b7452fc2e057f11d28356c08887 (patch)
tree19c2ae6b63f4a901a98346f51a1bff85739672f0 /spec/models/ci
parentedc936cde2730bb7c417343c582f2b8cf5b571c3 (diff)
downloadgitlab-ce-c9ed3b2d4d208b7452fc2e057f11d28356c08887.tar.gz
Add essential tests
Diffstat (limited to 'spec/models/ci')
-rw-r--r--spec/models/ci/job_artifact_spec.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/models/ci/job_artifact_spec.rb b/spec/models/ci/job_artifact_spec.rb
index 0e18a326c68..a2bd36537e6 100644
--- a/spec/models/ci/job_artifact_spec.rb
+++ b/spec/models/ci/job_artifact_spec.rb
@@ -12,6 +12,9 @@ describe Ci::JobArtifact do
it { is_expected.to respond_to(:created_at) }
it { is_expected.to respond_to(:updated_at) }
+ it { is_expected.to delegate_method(:open).to(:file) }
+ it { is_expected.to delegate_method(:exists?).to(:file) }
+
describe '#set_size' do
it 'sets the size' do
expect(artifact.size).to eq(106365)