From 9fa07095a35be2d8cb5adcc992b988e73a6d9719 Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Sat, 23 Apr 2016 18:22:04 +0900 Subject: remove unnessary option setting from test runner If run the test over the `rake` command, because of the test patterns is passed via `rake_run` method, do not need to be obtained from the argv. This probably fixes #24372. --- railties/test/application/test_runner_test.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'railties/test/application/test_runner_test.rb') diff --git a/railties/test/application/test_runner_test.rb b/railties/test/application/test_runner_test.rb index a1735db5b3..08759ab5a4 100644 --- a/railties/test/application/test_runner_test.rb +++ b/railties/test/application/test_runner_test.rb @@ -502,6 +502,14 @@ module ApplicationTests assert_match '1 runs, 1 assertions', output end + def test_pass_rake_options + create_test_file :models, 'account' + output = Dir.chdir(app_path) { `bin/rake --rakefile Rakefile --trace=stdout test` } + + assert_match '1 runs, 1 assertions', output + assert_match 'Execute test', output + end + def test_rails_db_create_all_restores_db_connection create_test_file :models, 'account' output = Dir.chdir(app_path) { `bin/rails db:create:all db:migrate && echo ".tables" | rails dbconsole` } -- cgit v1.2.3