summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-22 17:53:56 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-22 17:53:56 +0000
commit9ce6eb65bbeb97778c96fba55487c9aead469fea (patch)
tree7d2f62eee66b80ed1597e906c55e0fe88c4e2a32 /test
parent9adaa9e9df9c3aefc13473ae9bcfbbc58bc2de15 (diff)
* test/ruby/test_enum.rb (TestEnumerable#each): recursive join now
raises ArgumentError. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_enum.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_enum.rb b/test/ruby/test_enum.rb
index 660c593..10695cc 100644
--- a/test/ruby/test_enum.rb
+++ b/test/ruby/test_enum.rb
@@ -299,8 +299,8 @@ class TestEnumerable < Test::Unit::TestCase
yield self
end
end
- assert_equal("[...]", e.join(""), '[ruby-core:24150]')
- assert_equal("[...]", [e].join(""), '[ruby-core:24150]')
+ assert_raise(ArgumentError){e.join("")}
+ assert_raise(ArgumentError){[e].join("")}
e = Class.new {
include Enumerable
def initialize(*args)