diff options
author | Sean McGivern <sean@gitlab.com> | 2017-04-05 15:49:22 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-04-14 16:20:55 +0300 |
commit | c53afeda0c2ee0cda89c235c9e8799baa1cfdc1a (patch) | |
tree | 7efaef06c5ec20fc87fe6dadf1a794c8ef00f187 /spec/lib/gitlab/usage_data_spec.rb | |
parent | f5b42881c88678cd85ea7743fdffa400105b4b8d (diff) |
Port 'Add uuid to usage ping' to CE
CE port of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/1521
Diffstat (limited to 'spec/lib/gitlab/usage_data_spec.rb')
-rw-r--r-- | spec/lib/gitlab/usage_data_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/lib/gitlab/usage_data_spec.rb b/spec/lib/gitlab/usage_data_spec.rb index 2cb5d49c4c1..920135f79b4 100644 --- a/spec/lib/gitlab/usage_data_spec.rb +++ b/spec/lib/gitlab/usage_data_spec.rb @@ -12,9 +12,10 @@ describe Gitlab::UsageData do expect(subject.keys).to match_array(%i( active_user_count counts - version recorded_at mattermost_enabled + version + uuid )) end @@ -57,6 +58,7 @@ describe Gitlab::UsageData do subject { Gitlab::UsageData.license_usage_data } it "gathers license data" do + expect(subject[:uuid]).to eq(current_application_settings.uuid) expect(subject[:version]).to eq(Gitlab::VERSION) expect(subject[:active_user_count]).to eq(User.active.count) expect(subject[:recorded_at]).to be_a(Time) |