diff options
author | Arthur Neves <arthurnn@gmail.com> | 2015-03-05 11:31:03 -0500 |
---|---|---|
committer | Arthur Neves <arthurnn@gmail.com> | 2015-03-19 10:15:03 -0400 |
commit | 4bb92684743e56217bf2b465aed6e82797d05b5f (patch) | |
tree | a099076dd9fa096054377f918680090dc86ef5d1 /railties | |
parent | 9afd9d232c6b533578c7b86df245aa75939091e5 (diff) | |
download | rails-4bb92684743e56217bf2b465aed6e82797d05b5f.tar.gz rails-4bb92684743e56217bf2b465aed6e82797d05b5f.tar.bz2 rails-4bb92684743e56217bf2b465aed6e82797d05b5f.zip |
Fix test rake when passing multiple arguments
bundle exec db:migrate rake was not working, with the new runner, before this commit
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/test_unit/testing.rake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/test_unit/testing.rake b/railties/lib/rails/test_unit/testing.rake index f3a43a12db..0f26621b59 100644 --- a/railties/lib/rails/test_unit/testing.rake +++ b/railties/lib/rails/test_unit/testing.rake @@ -5,8 +5,8 @@ task default: :test desc "Runs all tests in test folder" task :test do $: << "test" - ARGV.shift if ARGV[0] == "test" - Rails::TestRunner.run(ARGV) + args = ARGV[0] == "test" ? ARGV[1..-1] : [] + Rails::TestRunner.run(args) end namespace :test do |