private_instance_methods returns symbols in 1.9

This commit is contained in:
Chris Wanstrath 2009-10-06 22:03:33 -07:00
parent 1c3a17ccc8
commit 54cc2b7358

View File

@ -6,6 +6,7 @@ class FakeSymlinkTest < Test::Unit::TestCase
include FakeFS
def test_symlink_has_method_missing_as_private
assert FakeSymlink.private_instance_methods.include?("method_missing")
methods = FakeSymlink.private_instance_methods.map { |m| m.to_s }
assert methods.include?("method_missing")
end
end