diff options
Diffstat (limited to 'spec/requests/api/graphql/namespace/root_storage_statistics_spec.rb')
-rw-r--r-- | spec/requests/api/graphql/namespace/root_storage_statistics_spec.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/spec/requests/api/graphql/namespace/root_storage_statistics_spec.rb b/spec/requests/api/graphql/namespace/root_storage_statistics_spec.rb index 7c48f324d24..c8819f1e38f 100644 --- a/spec/requests/api/graphql/namespace/root_storage_statistics_spec.rb +++ b/spec/requests/api/graphql/namespace/root_storage_statistics_spec.rb @@ -6,8 +6,15 @@ RSpec.describe 'rendering namespace statistics', feature_category: :metrics do include GraphqlHelpers let(:namespace) { user.namespace } - let!(:statistics) { create(:namespace_root_storage_statistics, namespace: namespace, packages_size: 5.gigabytes, uploads_size: 3.gigabytes) } let(:user) { create(:user) } + let!(:statistics) do + create( + :namespace_root_storage_statistics, + namespace: namespace, + packages_size: 5.gigabytes, + uploads_size: 3.gigabytes + ) + end let(:query) do graphql_query_for( |