simonc / memfs

MemFs provides a fake file system that can be used for tests. Strongly inspired by FakeFS.
MIT License
322 stars 27 forks source link

Pry does not work #25

Closed fpellanda closed 7 years ago

fpellanda commented 7 years ago

When running binding.pry when memfs is activated, pry cannot find the source code anymore.

Any idea how to fix that?

simonc commented 7 years ago

Hi @fpellanda. So sorry you're having a hard time with this.

A not yet published feature has landed on master some time ago and it may be a suitable workaround, it's MemFs.halt.

MemFs.halt { binding.pry }

Can you test this with master? If it works I release a new version and add it to the README :wink:

fpellanda commented 7 years ago

Thank you for the very fast answer. I've chosen another solution meanwile. But anyway, I think this would be a great feature to release! :+1:

simonc commented 7 years ago

I just tried the MemFs.halt solution and it works like a charm so I'll close this issue. Thanks for reporting it ☺️