From fd53bc85e7c4f57edbff1dd68b37cca320efee77 Mon Sep 17 00:00:00 2001 From: rohit Date: Sun, 19 Sep 2010 13:09:42 +0530 Subject: Send 'rails runner' help message to stdout instead of stderr. [#5661 state:committed] Signed-off-by: Santiago Pastorino --- railties/test/application/runner_test.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'railties/test/application') diff --git a/railties/test/application/runner_test.rb b/railties/test/application/runner_test.rb index 7e99ff624d..292d1e247f 100644 --- a/railties/test/application/runner_test.rb +++ b/railties/test/application/runner_test.rb @@ -19,8 +19,7 @@ module ApplicationTests end def test_should_include_runner_in_shebang_line_in_help - # redirect stderr to stdout as backticks don't capture stderr - assert_match "/rails runner", Dir.chdir(app_path) { `bundle exec rails runner --help 2>&1` } + assert_match "/rails runner", Dir.chdir(app_path) { `bundle exec rails runner --help` } end def test_should_run_ruby_statement -- cgit v1.2.3