From 684346cc03d6c63af092a8d87df3c8586869e86c Mon Sep 17 00:00:00 2001 From: Nick Plante Date: Wed, 19 Aug 2015 05:24:31 -0400 Subject: [PATCH] fix rubocop spec offenses --- spec/rails_admin/support/hash_helper_spec.rb | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/spec/rails_admin/support/hash_helper_spec.rb b/spec/rails_admin/support/hash_helper_spec.rb index c5ed8c85a5..f26fa5357f 100644 --- a/spec/rails_admin/support/hash_helper_spec.rb +++ b/spec/rails_admin/support/hash_helper_spec.rb @@ -3,15 +3,14 @@ require 'spec_helper' describe RailsAdmin::HashHelper do - let(:hash) { - { 'subject' => 'Test', - 'user' => { name: 'Dirk', - 'title' => 'Holistic Detective', - 'clients' => [ - { name: 'Zaphod' }, - { 'name' => 'Arthur' } - ] - }}} + let(:hash) do + {'subject' => 'Test', + 'user' => {name: 'Dirk', + 'title' => 'Holistic Detective', + 'clients' => [ + {name: 'Zaphod'}, + {'name' => 'Arthur'}]}} + end describe 'symbolize' do let(:symbolized_hash) { RailsAdmin::HashHelper.symbolize(hash) }