Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/api/ci/helpers/runner_helpers_spec.rb')
-rw-r--r--spec/lib/api/ci/helpers/runner_helpers_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/lib/api/ci/helpers/runner_helpers_spec.rb b/spec/lib/api/ci/helpers/runner_helpers_spec.rb
index c4d740f0adc..c6cdc1732f5 100644
--- a/spec/lib/api/ci/helpers/runner_helpers_spec.rb
+++ b/spec/lib/api/ci/helpers/runner_helpers_spec.rb
@@ -70,5 +70,17 @@ RSpec.describe API::Ci::Helpers::Runner do
expect(details['ip_address']).to eq(ip_address)
end
end
+
+ describe '#log_artifact_size' do
+ subject { runner_helper.log_artifact_size(artifact) }
+
+ let(:runner_params) { {} }
+ let(:artifact) { create(:ci_job_artifact, size: 42) }
+ let(:expected_params) { { artifact_size: artifact.size } }
+ let(:subject_proc) { proc { subject } }
+
+ it_behaves_like 'storing arguments in the application context'
+ it_behaves_like 'not executing any extra queries for the application context'
+ end
end
end