diff options
author | Yves Senn <yves.senn@gmail.com> | 2016-01-12 19:24:40 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2016-01-12 19:26:05 +0100 |
commit | 64448c29deb2f7239ac7e21035c05b8793ee1f47 (patch) | |
tree | 0d89d57c8fc6e225ad84cd4a333539b8ec755b21 /railties/lib | |
parent | f718e52bcce02bc137263ead3a9d9f5df1c42c37 (diff) | |
download | rails-64448c29deb2f7239ac7e21035c05b8793ee1f47.tar.gz rails-64448c29deb2f7239ac7e21035c05b8793ee1f47.tar.bz2 rails-64448c29deb2f7239ac7e21035c05b8793ee1f47.zip |
bring back `TEST` env for `rake test`.
Closes #23027.
This does not restore complete backwards compatibility. It simply passes
the contets of the `TEST` env to the new runner.
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/test_unit/testing.rake | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/railties/lib/rails/test_unit/testing.rake b/railties/lib/rails/test_unit/testing.rake index 6676c6a079..41921e43f3 100644 --- a/railties/lib/rails/test_unit/testing.rake +++ b/railties/lib/rails/test_unit/testing.rake @@ -7,7 +7,12 @@ task default: :test desc "Runs all tests in test folder" task :test do $: << "test" - Minitest.rake_run(["test"]) + pattern = if ENV.key?('TEST') + ENV['TEST'] + else + "test" + end + Minitest.rake_run([pattern]) end namespace :test do |