diff --git a/koans/about_array_assignment.rb b/koans/about_array_assignment.rb index 71efb16..21a64bb 100644 --- a/koans/about_array_assignment.rb +++ b/koans/about_array_assignment.rb @@ -20,8 +20,8 @@ class AboutArrayAssignment < EdgeCase::Koan def test_parallel_assignments_with_splat_operator first_name, *last_name = ["John", "Smith", "III"] - assert_equal "John", first_name - assert_equal ["Smith","III"], last_name + assert_equal __, first_name + assert_equal __, last_name end def test_parallel_assignments_with_too_few_variables diff --git a/src/about_array_assignment.rb b/src/about_array_assignment.rb index ce3b093..35af856 100644 --- a/src/about_array_assignment.rb +++ b/src/about_array_assignment.rb @@ -20,8 +20,8 @@ class AboutArrayAssignment < EdgeCase::Koan def test_parallel_assignments_with_splat_operator first_name, *last_name = ["John", "Smith", "III"] - assert_equal "John", first_name - assert_equal ["Smith","III"], last_name + assert_equal __("John"), first_name + assert_equal __(["Smith","III"]), last_name end def test_parallel_assignments_with_too_few_variables