Added missing __ replacements
authorJim Weirich <jim.weirich@gmail.com>
Tue, 28 Sep 2010 18:49:06 +0000 (14:49 -0400)
committerJim Weirich <jim.weirich@gmail.com>
Tue, 28 Sep 2010 18:49:06 +0000 (14:49 -0400)
koans/about_array_assignment.rb
src/about_array_assignment.rb

index 71efb16..21a64bb 100644 (file)
@@ -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
index ce3b093..35af856 100644 (file)
@@ -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