aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorEdouard CHIN <edouard.chin@shopify.com>2017-06-16 13:40:34 -0400
committerEdouard CHIN <edouard.chin@shopify.com>2017-06-16 13:40:34 -0400
commitf36115207b18fba3a44bdff5b345cdc28ed2d33e (patch)
treebbcb0559acbe048a5405c5eedb3e6c2e8da0a6e1 /railties/lib
parent9cf7217909c30e5513f668e5c8aa105b04ba35fd (diff)
downloadrails-f36115207b18fba3a44bdff5b345cdc28ed2d33e.tar.gz
rails-f36115207b18fba3a44bdff5b345cdc28ed2d33e.tar.bz2
rails-f36115207b18fba3a44bdff5b345cdc28ed2d33e.zip
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
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails/commands/test/test_command.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/commands/test/test_command.rb b/railties/lib/rails/commands/test/test_command.rb
index 65e16900ba..dce85cf12d 100644
--- a/railties/lib/rails/commands/test/test_command.rb
+++ b/railties/lib/rails/commands/test/test_command.rb
@@ -11,7 +11,7 @@ module Rails
end
def perform(*)
- $LOAD_PATH << Rails::Command.root.join("test")
+ $LOAD_PATH << Rails::Command.root.join("test").to_s
Minitest.run_via = :rails