aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2015-12-19 20:04:39 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2015-12-21 07:48:53 +0900
commit4f8c36ab707b7a262cd9b37d4a71e6234d9f8f3c (patch)
treef2d24490f398647a42547244fbf766f82f8af08e /railties/test/application
parent6873db4699ac727dd27eedb0994ecdd976b40901 (diff)
downloadrails-4f8c36ab707b7a262cd9b37d4a71e6234d9f8f3c.tar.gz
rails-4f8c36ab707b7a262cd9b37d4a71e6234d9f8f3c.tar.bz2
rails-4f8c36ab707b7a262cd9b37d4a71e6234d9f8f3c.zip
display detailed information in inline reporting
The errors message only was not displayed, as if it did not use the inline reporting, modified to also information the method name and the like in error are displayed. ``` # before Failed assertion, no message given. bin/rails test test/models/user_test.rb:5 ``` ``` # after Failure: UserTest#test_the_truth: Failed assertion, no message given. bin/rails test test/models/user_test.rb:5 ```
Diffstat (limited to 'railties/test/application')
-rw-r--r--railties/test/application/test_runner_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/test/application/test_runner_test.rb b/railties/test/application/test_runner_test.rb
index 4965ab7da0..92a9b99fd8 100644
--- a/railties/test/application/test_runner_test.rb
+++ b/railties/test/application/test_runner_test.rb
@@ -344,7 +344,8 @@ module ApplicationTests
create_test_file :models, 'post', pass: false
output = run_test_command('test/models/post_test.rb')
- assert_match %r{Running:\n\nPostTest\nF\n\nwups!\n\nbin/rails test test/models/post_test.rb:6}, output
+ expect = %r{Running:\n\nPostTest\nF\n\nFailure:\nPostTest#test_truth:\nwups!\n\nbin/rails test test/models/post_test.rb:6\n\n\n\n}
+ assert_match expect, output
end
def test_only_inline_failure_output