From 24a1e2d410d668181bf659d0e2fe47fff2304514 Mon Sep 17 00:00:00 2001 From: Pawel Suder Date: Tue, 29 May 2018 08:38:21 +0200 Subject: [PATCH] Fix failing syntax tests Due to RuboCop settings, usage of %w[] was not working correctly. That change fixes that. Related to #1084 --- spec/functions/mysql_deepmerge_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/functions/mysql_deepmerge_spec.rb b/spec/functions/mysql_deepmerge_spec.rb index e44db6cd2..4987a5378 100644 --- a/spec/functions/mysql_deepmerge_spec.rb +++ b/spec/functions/mysql_deepmerge_spec.rb @@ -20,10 +20,10 @@ end # rubocop:disable RSpec/NamedSubject - index_values = %w[one two three] - expected_values_one = %w[1 2 2] + index_values = ['one', 'two', 'three'] + expected_values_one = [1, 2, 2] it 'is able to mysql_deepmerge two hashes' do - new_hash = subject.execute({ 'one' => '1', 'two' => '1' }, 'two' => '2', 'three' => '2') + new_hash = subject.execute({ 'one' => 1, 'two' => 1 }, 'two' => 2, 'three' => 2) index_values.each_with_index do |index, expected| expect(new_hash[index]).to eq(expected_values_one[expected]) end @@ -59,7 +59,7 @@ end end - index_values_two = %w[key1 key2] + index_values_two = ['key1', 'key2'] expected_values_four = [{ 'a' => 1, 'b' => 99 }, 'c' => 3] it 'appends to subhashes 3' do hash = subject.execute({ 'key1' => { 'a' => 1, 'b' => 2 }, 'key2' => { 'c' => 3 } }, 'key1' => { 'b' => 99 })