From 54cc2b7358ea245c552de23bf36283b92c79de0c Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Tue, 6 Oct 2009 22:03:33 -0700 Subject: [PATCH] private_instance_methods returns symbols in 1.9 --- test/fake/symlink_test.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/fake/symlink_test.rb b/test/fake/symlink_test.rb index 2c59c69..d63208b 100644 --- a/test/fake/symlink_test.rb +++ b/test/fake/symlink_test.rb @@ -4,8 +4,9 @@ require 'test/unit' 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 \ No newline at end of file +end