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

uninitialized constant MemFs::Dir::Tmpname #28

Closed kyle-c9000 closed 3 years ago

kyle-c9000 commented 5 years ago

I am running ruby 2.3.0 and memfs 1.0.0

When running the following test:

  it "blah" do
    MemFs.activate do
      Tempfile.new('asd')
    end
  end

It results in the following error:

     Failure/Error: Tempfile.new('asd')

     NameError:
       uninitialized constant MemFs::Dir::Tmpname
simonc commented 5 years ago

Hi @neokyle1 sorry for not answering sooner, the Github notification went to my junk folder. Did you find a workaround in the mean time? I'll try to address the issue asap. Thanks for bringing this to my attention! ☺️

kyle-c9000 commented 5 years ago

No problem. Sorry, I do not remember troubleshooting this that much. Looks like I ended up switching to fakefs for that project.