Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests don't work #495

Closed
SteveRedka opened this issue Jun 18, 2021 · 2 comments
Closed

Tests don't work #495

SteveRedka opened this issue Jun 18, 2021 · 2 comments

Comments

@SteveRedka
Copy link
Contributor

SteveRedka commented Jun 18, 2021

Running ruby test/test_lorem.rb results in:

Traceback (most recent call last):
	3: from test/test_lorem.rb:5:in `<main>'
	2: from test/test_lorem.rb:9:in `<class:TestLorem>'
	1: from /home/me/.rvm/rubies/ruby-2.7.0-preview1/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/home/me/.rvm/rubies/ruby-2.7.0-preview1/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- ffaker/lorem (LoadError)

Also gem install ffaker makes all tests green, regardless of any changes made to files.

@SteveRedka
Copy link
Contributor Author

SteveRedka commented Jun 19, 2021

I think I found what causes it?

#496

autoload doesn't load files relative to file's location. But maybe I'm missing something; autoload was added 3 years ago, and I'm the first person to run into this problem.

@SteveRedka
Copy link
Contributor Author

For all tests:
rake test

For individual test:

rake test TEST=test/test_lorem_br.rb

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

No branches or pull requests

1 participant