Skip to content

uninitialized constant MemFs::Dir::Tmpname (NameError) #44

@TastyPi

Description

@TastyPi

The following code:

MemFs.activate { Tempfile.create }

produces the following error:

ruby/3.2.0/tempfile.rb:400:in `create': uninitialized constant MemFs::Dir::Tmpname (NameError)
                                                                                                     
  Dir::Tmpname.create(basename, tmpdir, **options) do |tmpname, n, opts|                             
     ^^^^^^^^^  

This is with Ruby 3.2.0 and memfs 1.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions