summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_module.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb
index 392a98b693..cb8631bf08 100644
--- a/test/ruby/test_module.rb
+++ b/test/ruby/test_module.rb
@@ -1233,9 +1233,10 @@ class TestModule < Test::Unit::TestCase
o = c.new
assert_respond_to(o, :foo)
assert_not_respond_to(o, :bar)
- c.class_eval {alias_method :bar, :foo}
+ r = c.class_eval {alias_method :bar, :foo}
assert_respond_to(o, :bar)
assert_equal(:foo, o.bar)
+ assert_equal(:bar, r)
end
def test_undef