diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-25 00:12:08 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-25 00:12:08 +0300 |
commit | 774f6e6e9824de147c12dcec745b16a049f86146 (patch) | |
tree | 81befe12f28d52f10c6a24a79ab0bbbb11668acc /spec/lib/gitlab/usage_data_spec.rb | |
parent | 4bb797f25563205cf495f4dd5366e037e88831ab (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/gitlab/usage_data_spec.rb')
-rw-r--r-- | spec/lib/gitlab/usage_data_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/lib/gitlab/usage_data_spec.rb b/spec/lib/gitlab/usage_data_spec.rb index 6f188aa408e..a1564318408 100644 --- a/spec/lib/gitlab/usage_data_spec.rb +++ b/spec/lib/gitlab/usage_data_spec.rb @@ -42,7 +42,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures, feature_category: :servic end it 'ensures recorded_at is set before any other usage data calculation' do - %i(alt_usage_data redis_usage_data distinct_count count).each do |method| + %i[alt_usage_data redis_usage_data distinct_count count].each do |method| expect(described_class).not_to receive(method) end expect(described_class).to receive(:recorded_at).and_raise(Exception.new('Stopped calculating recorded_at')) @@ -191,7 +191,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures, feature_category: :servic omniauth: { providers: omniauth_providers } ) - allow(Devise).to receive(:omniauth_providers).and_return(%w(ldapmain ldapsecondary group_saml)) + allow(Devise).to receive(:omniauth_providers).and_return(%w[ldapmain ldapsecondary group_saml]) for_defined_days_back do user = create(:user) @@ -268,7 +268,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures, feature_category: :servic for_defined_days_back do user = create(:user) - %w(gitlab_project github bitbucket bitbucket_server gitea git manifest fogbugz).each do |type| + %w[gitlab_project github bitbucket bitbucket_server gitea git manifest fogbugz].each do |type| create(:project, import_type: type, creator_id: user.id) end @@ -734,7 +734,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures, feature_category: :servic subject { described_class.object_store_usage_data } it 'fetches object store config of five components' do - %w(artifacts external_diffs lfs uploads packages).each do |component| + %w[artifacts external_diffs lfs uploads packages].each do |component| expect(described_class).to receive(:object_store_config).with(component).and_return("#{component}_object_store_config") end |