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
rails plugin new cool_plugin --mountable
test/dummy
bin/rails t
Tests should pass
Tests don't pass because in test helper we have
if ActiveSupport::TestCase.respond_to?(:fixture_path=) ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__) ... end
Change
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
to
ActiveSupport::TestCase.fixture_path = File.expand_path("../dummy/test/fixtures", __FILE__)
in railties/lib/rails/generators/rails/plugin/templates/test/test_helper.rb
railties/lib/rails/generators/rails/plugin/templates/test/test_helper.rb
Rails version: 5.0.0.rc2
Ruby version: 2.3.0
The text was updated successfully, but these errors were encountered:
Would you be willing to submit a PR to change this? We can continue the discussion there :)
Sorry, something went wrong.
No branches or pull requests
Steps to reproduce
rails plugin new cool_plugin --mountable
test/dummy
and generate few scaffoldsbin/rails t
Expected behavior
Tests should pass
Actual behavior
Tests don't pass because in test helper we have
Potential solution
Change
to
in
railties/lib/rails/generators/rails/plugin/templates/test/test_helper.rb
System configuration
Rails version: 5.0.0.rc2
Ruby version: 2.3.0
The text was updated successfully, but these errors were encountered: