Commit 85461b92 authored by Jarka Košanová's avatar Jarka Košanová

Merge branch '223165-test-describe-titles-for-class-methods-for-usage-data' into 'master'

Fix usage data spec names

See merge request gitlab-org/gitlab!35528
parents 0f5b14d7 8330b992
......@@ -265,7 +265,7 @@ RSpec.describe Gitlab::UsageData do
end
end
describe '#operations_dashboard_usage' do
describe '.operations_dashboard_usage' do
subject { described_class.operations_dashboard_usage }
before_all do
......
......@@ -87,7 +87,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do
end
end
describe '#data' do
describe '.data' do
let!(:ud) { build(:usage_data) }
before do
......@@ -267,7 +267,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do
end
end
describe '#usage_data_counters' do
describe '.usage_data_counters' do
subject { described_class.usage_data_counters }
it { is_expected.to all(respond_to :totals) }
......@@ -294,7 +294,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do
end
end
describe '#license_usage_data' do
describe '.license_usage_data' do
subject { described_class.license_usage_data }
it 'gathers license data' do
......@@ -307,7 +307,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do
end
context 'when not relying on database records' do
describe '#features_usage_data_ce' do
describe '.features_usage_data_ce' do
subject { described_class.features_usage_data_ce }
it 'gathers feature usage data', :aggregate_failures do
......@@ -340,7 +340,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do
end
end
describe '#components_usage_data' do
describe '.components_usage_data' do
subject { described_class.components_usage_data }
it 'gathers basic components usage data' do
......@@ -364,7 +364,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do
end
end
describe '#app_server_type' do
describe '.app_server_type' do
subject { described_class.app_server_type }
it 'successfully identifies runtime and returns the identifier' do
......@@ -386,7 +386,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do
end
end
describe '#object_store_config' do
describe '.object_store_config' do
let(:component) { 'lfs' }
subject { described_class.object_store_config(component) }
......@@ -427,7 +427,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do
end
end
describe '#object_store_usage_data' do
describe '.object_store_usage_data' do
subject { described_class.object_store_usage_data }
it 'fetches object store config of five components' do
......@@ -446,7 +446,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do
end
end
describe '#cycle_analytics_usage_data' do
describe '.cycle_analytics_usage_data' do
subject { described_class.cycle_analytics_usage_data }
it 'works when queries time out in new' do
......@@ -464,7 +464,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do
end
end
describe '#ingress_modsecurity_usage' do
describe '.ingress_modsecurity_usage' do
subject { described_class.ingress_modsecurity_usage }
let(:environment) { create(:environment) }
......@@ -596,7 +596,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do
end
end
describe '#grafana_embed_usage_data' do
describe '.grafana_embed_usage_data' do
subject { described_class.grafana_embed_usage_data }
let(:project) { create(:project) }
......@@ -662,7 +662,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do
end
end
describe '#merge_requests_usage' do
describe '.merge_requests_usage' do
let(:time_period) { { created_at: 2.days.ago..Time.current } }
let(:merge_request) { create(:merge_request) }
let(:other_user) { create(:user) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment