UUID No such file or directory ~/.gem/ruby/3.3.3/gems/ffaker-2.23.0/lib/ffaker/data/f_faker/uuid · Issue #550 · ffaker/ffaker · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
require'rails_helper'require'ffaker'RSpec.describe'FFaker UUID'dodescribe'.uuidv4'doit'returns a string'douuid=FFaker::UUID.uuidv4expect(uuid).tobe_a(String)endendend
Setup database
rails db:create db:migrate
Run the test:
bundle exec rspec
Error Output
Failures:
1) FFaker UUID .uuidv4 returns a string
Failure/Error: uuid = FFaker::UUID.uuidv4
Errno::ENOENT:
No such file or directory @ rb_sysopen - ~/.gem/ruby/3.3.3/gems/ffaker-2.23.0/lib/ffaker/data/f_faker/uuid
# ~/.gem/ruby/3.3.3/gems/ffaker-2.23.0/lib/ffaker/utils/module_utils.rb:21:in `read'
# ~/.gem/ruby/3.3.3/gems/ffaker-2.23.0/lib/ffaker/utils/module_utils.rb:21:in `const_missing'
# ./spec/ffaker_uuid_spec.rb:7:in `block (3 levels) in <top (required)>'
The FFaker::UUID.uuidv4 method should return a string representing a UUID.
Actual Behavior
The method fails with a "No such file or directory" error, indicating that FFaker is trying to load a data file that doesn't exist.
The text was updated successfully, but these errors were encountered:
marko-avlijas
changed the title
UUID No such file or directory /#{HOME}/.gem/ruby/3.3.3/gems/ffaker-2.23.0/lib/ffaker/data/f_faker/uuid
UUID No such file or directory ~/.gem/ruby/3.3.3/gems/ffaker-2.23.0/lib/ffaker/data/f_faker/uuid
Oct 28, 2024
Uh oh!
There was an error while loading. Please reload this page.
Description
When calling any method from
UUID
module from a new Rails app,const_missing
raisesErrno::ENOENT: No such file or directory
.Steps to Reproduce
cd ffaker-test
spec/ffaker_uuid_spec.rb
:bundle exec rspec
Error Output
Defect
ffaker/lib/ffaker/utils/module_utils.rb
Lines 15 to 25 in c354c44
Environment
Expected Behavior
The
FFaker::UUID.uuidv4
method should return a string representing a UUID.Actual Behavior
The method fails with a "No such file or directory" error, indicating that FFaker is trying to load a data file that doesn't exist.
The text was updated successfully, but these errors were encountered: