diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-07-30 09:02:51 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-07-30 09:38:12 +0900 |
commit | 0348a9e4ae590f26693f27b135d983103f2fa258 (patch) | |
tree | bdfe655c98c808be756d9a58d093688a15391381 /railties/test | |
parent | 05731f11d6239b1129c73a79433923c9d1448d3e (diff) | |
download | rails-0348a9e4ae590f26693f27b135d983103f2fa258.tar.gz rails-0348a9e4ae590f26693f27b135d983103f2fa258.tar.bz2 rails-0348a9e4ae590f26693f27b135d983103f2fa258.zip |
Fix test runner's output
Output changed due to specification change of `SummaryReporter#aggregated_results`
in minitest 5.10.2.
In my opinion, that should fix rails's test runner(proceeding with #29354).
However, we still need discussion and the fix itself is minor, so I think
that we can fix only the test first.
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/application/test_runner_test.rb | 2 | ||||
-rw-r--r-- | railties/test/generators/plugin_test_runner_test.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/application/test_runner_test.rb b/railties/test/application/test_runner_test.rb index 8e0712fca2..82dcfe5200 100644 --- a/railties/test/application/test_runner_test.rb +++ b/railties/test/application/test_runner_test.rb @@ -489,7 +489,7 @@ module ApplicationTests create_test_file :models, "post", pass: false output = run_test_command("test/models/post_test.rb") - assert_match %r{Finished in.*\n\n1 runs, 1 assertions}, output + assert_match %r{Finished in.*\n1 runs, 1 assertions}, output end def test_fail_fast diff --git a/railties/test/generators/plugin_test_runner_test.rb b/railties/test/generators/plugin_test_runner_test.rb index 0bdd2a77d2..f9c860b04a 100644 --- a/railties/test/generators/plugin_test_runner_test.rb +++ b/railties/test/generators/plugin_test_runner_test.rb @@ -71,7 +71,7 @@ class PluginTestRunnerTest < ActiveSupport::TestCase create_test_file "post", pass: false output = run_test_command("test/post_test.rb") - assert_match %r{Finished in.*\n\n1 runs, 1 assertions}, output + assert_match %r{Finished in.*\n1 runs, 1 assertions}, output end def test_fail_fast |