summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-02-01 07:32:24 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-02-01 07:32:24 +0000
commita7055a6b450b78c35897907c5f9401f969ee6844 (patch)
tree9823e33361ccd411d1b1c131ef79e4221824ed23 /test/ruby
parentf71a0eb22a3f7fc565707da3dffc39fc8b7825d0 (diff)
* test/ruby/test_super.rb (TestSuper#test_define_method): modified
expected result. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_super.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ruby/test_super.rb b/test/ruby/test_super.rb
index a9d931c0ef..51819667ee 100644
--- a/test/ruby/test_super.rb
+++ b/test/ruby/test_super.rb
@@ -120,7 +120,7 @@ class TestSuper < Test::Unit::TestCase
def uu(a)
class << self
define_method(:tt) do |sym|
- super
+ super(sym)
end
end
end
@@ -128,7 +128,7 @@ class TestSuper < Test::Unit::TestCase
class B
def m
- [self, "#{self.class.to_s}::m"]
+ [self, "#{self.to_s}::m"]
end
end
@@ -141,12 +141,12 @@ class TestSuper < Test::Unit::TestCase
def test_define_method
a = A.new
a.uu(12)
- assert_equal("A#tt", a.tt(12), '[ruby-core:03856]')
+ assert_equal("A#tt", a.tt(12), "[ruby-core:3856]")
bug2419 = '[ruby-core:26984]'
q = C.t
assert_raise(NoMethodError, bug2419) {q.call}
c = C.new
- assert_equal([c, "#{C.to_s}::m"], c.m, bug2419)
+ assert_equal([c, "#{c.to_s}::m"], c.m, bug2419)
end
end