We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Create new Rails plugin rails plugin new example_plugin
rails plugin new example_plugin
Validate gemspec by removing "TODO"
Run generated test rake test
rake test
I expect there to be 1 passing test that asserts the plugin defined a module with the same name.
You get an error
uninitialized constant Rails::TestUnitReporter (NameError)
in
{plugin_name}/test/test_helper.rb
Rails version: 5.1.3
Ruby version: 2.4.1
I confirmed that we do not get this error in Rails 5.1.2
I believe it was introduced in pull request 29572
The text was updated successfully, but these errors were encountered:
test_unit/reporter
Explicitly require test_unit/reporter in test helper
c31c705
If the user used the `bin/test` to execute the test, this file is automatically loaded, so require is unnecessary. https://github.com/rails/rails/blob/acea68de026ba657cb65c4dd0fc1f24ba67e1cf8/railties/lib/rails/plugin/test.rb#L4 However, when using `rake test`, an explicit require is required because the above file is not loaded. Fixes rails#30516
No branches or pull requests
Steps to reproduce
Create new Rails plugin
rails plugin new example_plugin
Validate gemspec by removing "TODO"
Run generated test
rake test
Expected behavior
I expect there to be 1 passing test that asserts the plugin defined a module with the same name.
Actual behavior
You get an error
uninitialized constant Rails::TestUnitReporter (NameError)
in
{plugin_name}/test/test_helper.rb
System configuration
Rails version:
5.1.3
Ruby version:
2.4.1
I confirmed that we do not get this error in Rails 5.1.2
I believe it was introduced in pull request 29572
The text was updated successfully, but these errors were encountered: