2009-09-30 02:57:14 +00:00
|
|
|
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', '..', 'lib')
|
|
|
|
require 'fakefs/safe'
|
|
|
|
require 'test/unit'
|
|
|
|
|
|
|
|
class FakeSymlinkTest < Test::Unit::TestCase
|
|
|
|
include FakeFS
|
2009-10-07 05:03:33 +00:00
|
|
|
|
2009-09-30 02:57:14 +00:00
|
|
|
def test_symlink_has_method_missing_as_private
|
2009-10-07 05:03:33 +00:00
|
|
|
methods = FakeSymlink.private_instance_methods.map { |m| m.to_s }
|
|
|
|
assert methods.include?("method_missing")
|
2009-09-30 02:57:14 +00:00
|
|
|
end
|
2009-10-07 05:03:33 +00:00
|
|
|
end
|