Added basic File#to_path support (Closes #92)
This commit is contained in:
parent
a0e02ed974
commit
14367140a3
@ -358,7 +358,7 @@ module FakeFS
|
||||
end
|
||||
|
||||
def to_path
|
||||
raise NotImplementedError
|
||||
@path
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -1663,5 +1663,11 @@ class FakeFSTest < Test::Unit::TestCase
|
||||
assert_equal false, f.autoclose?
|
||||
end
|
||||
end
|
||||
|
||||
def test_to_path
|
||||
File.new("foo", 'w') do |f|
|
||||
assert_equal "foo", f.to_path
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user