summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_lazy_enumerator.rb4
-rw-r--r--test/ruby/test_refinement.rb14
2 files changed, 9 insertions, 9 deletions
diff --git a/test/ruby/test_lazy_enumerator.rb b/test/ruby/test_lazy_enumerator.rb
index 03371c912a..d42c8d3261 100644
--- a/test/ruby/test_lazy_enumerator.rb
+++ b/test/ruby/test_lazy_enumerator.rb
@@ -17,9 +17,9 @@ class TestLazyEnumerator < Test::Unit::TestCase
@enum.each do |v|
@current = v
if v.is_a? Enumerable
- yield *v
+ yield(*v)
else
- yield v
+ yield(v)
end
end
end
diff --git a/test/ruby/test_refinement.rb b/test/ruby/test_refinement.rb
index 49bf907302..8908d353a5 100644
--- a/test/ruby/test_refinement.rb
+++ b/test/ruby/test_refinement.rb
@@ -2096,7 +2096,7 @@ class TestRefinement < Test::Unit::TestCase
end
}
def call
- ToProc.call &self
+ ToProc.call(&self)
end
end
@@ -2111,7 +2111,7 @@ class TestRefinement < Test::Unit::TestCase
}
def call
- ToProc.call &self
+ ToProc.call(&self)
end
end
@@ -2127,14 +2127,14 @@ class TestRefinement < Test::Unit::TestCase
}
def call
- ToProc.call &self
+ ToProc.call(&self)
end
end
class NonProc
def call
- ToProc.call &self
+ ToProc.call(&self)
end
end
@@ -2144,7 +2144,7 @@ class TestRefinement < Test::Unit::TestCase
end
def call
- ToProc.call &self
+ ToProc.call(&self)
end
end
@@ -2163,7 +2163,7 @@ class TestRefinement < Test::Unit::TestCase
}
def call
- ToProc.call &self
+ ToProc.call(&self)
end
end
@@ -2182,7 +2182,7 @@ class TestRefinement < Test::Unit::TestCase
}
def call
- ToProc.call &self
+ ToProc.call(&self)
end
end
end