summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzegorz@gitlab.com>2019-02-12 14:41:34 +0000
committerGrzegorz Bizon <grzegorz@gitlab.com>2019-02-12 14:41:34 +0000
commitd29e81b2aa7fc26736eb09309bbbf2ab5a5d5050 (patch)
tree675f13458065dc931bae4cff1a8fb5d41431a943 /spec
parent453dec0a575bce9db8df6003f3de62228bec1f53 (diff)
parentfa518963ec7a703ddb321533884a49c516a4acd7 (diff)
downloadgitlab-ce-d29e81b2aa7fc26736eb09309bbbf2ab5a5d5050.tar.gz
Merge branch '7048_usage_ping_for_security_dashboard_as_default_view_for_groups-ce' into 'master'
Usage ping for Group overview default user preference See merge request gitlab-org/gitlab-ce!24980
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/gitlab/usage_data_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/lib/gitlab/usage_data_spec.rb b/spec/lib/gitlab/usage_data_spec.rb
index 4f5993ba226..d3eae80cc56 100644
--- a/spec/lib/gitlab/usage_data_spec.rb
+++ b/spec/lib/gitlab/usage_data_spec.rb
@@ -124,9 +124,15 @@ describe Gitlab::UsageData do
todos
uploads
web_hooks
+ user_preferences
))
end
+ it 'does not gather user preferences usage data when the feature is disabled' do
+ stub_feature_flags(group_overview_security_dashboard: false)
+ expect(subject[:counts].keys).not_to include(:user_preferences)
+ end
+
it 'gathers projects data correctly' do
count_data = subject[:counts]