Skip to content

Add missing require for pathname#17

Open
felixonmars wants to merge 1 commit intosheerun:masterfrom
felixonmars:patch-1
Open

Add missing require for pathname#17
felixonmars wants to merge 1 commit intosheerun:masterfrom
felixonmars:patch-1

Conversation

@felixonmars
Copy link

Fixes the following error on Ruby 3 here:

.............F..

Failures:

  1) Filelock should handle Pathname as well as string path
     Failure/Error: lockpath = Pathname.new(File.join(dir, 'sample.lock'))

     NameError:
       uninitialized constant Pathname
     # ./spec/filelock_spec.rb:254:in `block (3 levels) in <top (required)>'
     # ./spec/filelock_spec.rb:253:in `block (2 levels) in <top (required)>'

Finished in 8.35 seconds (files took 0.05113 seconds to load)
16 examples, 1 failure

Failed examples:

rspec ./spec/filelock_spec.rb:252 # Filelock should handle Pathname as well as string path

Fixes the following error on Ruby 3 here:

```
.............F..

Failures:

  1) Filelock should handle Pathname as well as string path
     Failure/Error: lockpath = Pathname.new(File.join(dir, 'sample.lock'))

     NameError:
       uninitialized constant Pathname
     # ./spec/filelock_spec.rb:254:in `block (3 levels) in <top (required)>'
     # ./spec/filelock_spec.rb:253:in `block (2 levels) in <top (required)>'

Finished in 8.35 seconds (files took 0.05113 seconds to load)
16 examples, 1 failure

Failed examples:

rspec ./spec/filelock_spec.rb:252 # Filelock should handle Pathname as well as string path
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments