diff options
author | Stan Hu <stanhu@gmail.com> | 2016-10-20 00:29:01 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-04-14 16:20:55 +0300 |
commit | f30a46b401f283f2dc868da17de413eee05198a5 (patch) | |
tree | 9be951a0c4f937d3a8a9adfe46dce088ba9fbb34 /spec/workers | |
parent | bca368990acdb86acf251382c191fa9b7627837a (diff) |
Used named parameter for refreshing usage data
Diffstat (limited to 'spec/workers')
-rw-r--r-- | spec/workers/gitlab_usage_ping_worker_spec.rb | 1 |
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) |