Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pathname#exist? does not seem to be wrapped #14

Closed
dkubb opened this issue Oct 18, 2009 · 1 comment
Closed

Pathname#exist? does not seem to be wrapped #14

dkubb opened this issue Oct 18, 2009 · 1 comment
Labels

Comments

@dkubb
Copy link

dkubb commented Oct 18, 2009

I was using Pathname#exist? within some code, and noticed it was not being wrapped by fakefs. It looks like Pathname uses FileTest, rather than File (no idea why). I worked around it with a monkey patch:

# fakefs does not wrap FileTest methods, which Pathname delegates to
class Pathname
  def exist?
    File.exist?(self)
  end
end
@smtlaissezfaire
Copy link
Collaborator

Add FileTest#exist? Swap out FileTest for FakeFS::FileTest. Closed by 50193f2

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants