Permalink
Browse files

Add the `<app_root>/test` dir to the `$LOAD_PATH` as a string:

- [Rails <= 5.0](https://github.com/rails/rails/blob/5-0-stable/railties/lib/rails/commands/test.rb#L6) used to add the `<app_root>/test` as a string; this behaviour changed in rails 5.1, it's appending a `Pathname` object
  • Loading branch information...
Edouard-chin committed Jun 16, 2017
1 parent 9cf7217 commit f36115207b18fba3a44bdff5b345cdc28ed2d33e
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/commands/test/test_command.rb
@@ -11,7 +11,7 @@ def help
end
def perform(*)
$LOAD_PATH << Rails::Command.root.join("test")
$LOAD_PATH << Rails::Command.root.join("test").to_s
Minitest.run_via = :rails

0 comments on commit f361152

Please sign in to comment.