diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-04-23 18:22:04 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-04-25 08:33:39 +0900 |
commit | 9fa07095a35be2d8cb5adcc992b988e73a6d9719 (patch) | |
tree | a64f28a3cfb1c9aa1111394501f9f16548cdacab /railties/test/application/test_runner_test.rb | |
parent | 8e7715ae31dba383f1c0497adf1b85c7a99ef5da (diff) | |
download | rails-9fa07095a35be2d8cb5adcc992b988e73a6d9719.tar.gz rails-9fa07095a35be2d8cb5adcc992b988e73a6d9719.tar.bz2 rails-9fa07095a35be2d8cb5adcc992b988e73a6d9719.zip |
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.
Diffstat (limited to 'railties/test/application/test_runner_test.rb')
-rw-r--r-- | railties/test/application/test_runner_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
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` } |