You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: