Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/namespace/root_storage_statistics_spec.rb')
-rw-r--r--spec/models/namespace/root_storage_statistics_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/namespace/root_storage_statistics_spec.rb b/spec/models/namespace/root_storage_statistics_spec.rb
index 4b66b7532a7..9a66b4745c0 100644
--- a/spec/models/namespace/root_storage_statistics_spec.rb
+++ b/spec/models/namespace/root_storage_statistics_spec.rb
@@ -12,7 +12,7 @@ RSpec.describe Namespace::RootStorageStatistics, type: :model, feature_category:
describe '.for_namespace_ids' do
it 'returns only requested namespaces' do
stats = create_list(:namespace_root_storage_statistics, 3)
- namespace_ids = stats[0..1].map { |s| s.namespace_id }
+ namespace_ids = stats[0..1].map(&:namespace_id)
requested_stats = described_class.for_namespace_ids(namespace_ids).pluck(:namespace_id)