summaryrefslogtreecommitdiff
path: root/spec/workers
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2016-10-19 14:29:01 -0700
committerRémy Coutable <remy@rymai.me>2017-04-14 15:20:55 +0200
commitf30a46b401f283f2dc868da17de413eee05198a5 (patch)
tree9be951a0c4f937d3a8a9adfe46dce088ba9fbb34 /spec/workers
parentbca368990acdb86acf251382c191fa9b7627837a (diff)
downloadgitlab-ce-f30a46b401f283f2dc868da17de413eee05198a5.tar.gz
Used named parameter for refreshing usage data
Diffstat (limited to 'spec/workers')
-rw-r--r--spec/workers/gitlab_usage_ping_worker_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/workers/gitlab_usage_ping_worker_spec.rb b/spec/workers/gitlab_usage_ping_worker_spec.rb
index 8821df3d81e..b6c080f36f4 100644
--- a/spec/workers/gitlab_usage_ping_worker_spec.rb
+++ b/spec/workers/gitlab_usage_ping_worker_spec.rb
@@ -8,6 +8,7 @@ describe GitlabUsagePingWorker do
stub_request(:post, "https://version.gitlab.com/usage_data").
to_return(status: 200, body: '', headers: {})
+ expect(Gitlab::UsageData).to receive(:to_json).with({ force_refresh: true }).and_call_original
expect(subject).to receive(:try_obtain_lease).and_return(true)
expect(subject.perform.response.code.to_i).to eq(200)