private_instance_methods returns symbols in 1.9
This commit is contained in:
parent
1c3a17ccc8
commit
54cc2b7358
@ -4,8 +4,9 @@ require 'test/unit'
|
|||||||
|
|
||||||
class FakeSymlinkTest < Test::Unit::TestCase
|
class FakeSymlinkTest < Test::Unit::TestCase
|
||||||
include FakeFS
|
include FakeFS
|
||||||
|
|
||||||
def test_symlink_has_method_missing_as_private
|
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
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user