diff options
Diffstat (limited to 'spec/views/admin/dashboard/index.html.haml_spec.rb')
-rw-r--r-- | spec/views/admin/dashboard/index.html.haml_spec.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/views/admin/dashboard/index.html.haml_spec.rb b/spec/views/admin/dashboard/index.html.haml_spec.rb index 6e06af92232..337964f1354 100644 --- a/spec/views/admin/dashboard/index.html.haml_spec.rb +++ b/spec/views/admin/dashboard/index.html.haml_spec.rb @@ -7,9 +7,7 @@ RSpec.describe 'admin/dashboard/index.html.haml' do include StubVersion before do - counts = Admin::DashboardController::COUNTED_ITEMS.each_with_object({}) do |item, hash| - hash[item] = 100 - end + counts = Admin::DashboardController::COUNTED_ITEMS.index_with { 100 } assign(:counts, counts) assign(:projects, create_list(:project, 1)) |