The tmpdir library in the stdlib implements a single method called mktmpdir. I'd like to be able to use it for an eloop test that looks something like this:
require 'tmpdir'
Dir.chdir(Dir.mktmpdir) do
File.symlink('eloop0', 'eloop1')
File.symlink('eloop1', 'eloop0')
expected = ['./eloop0', './eloop1']
results = described_class.new(:path => '.', :follow => true).find
expect(results.sort).to eq(expected)
end
However, with memfs I'm getting:
undefined method 'mktmpdir' for MemFs::Dir:Class
Can that be implemented?
The
tmpdirlibrary in the stdlib implements a single method calledmktmpdir. I'd like to be able to use it for an eloop test that looks something like this:However, with memfs I'm getting:
undefined method 'mktmpdir' for MemFs::Dir:ClassCan that be implemented?