aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application
diff options
context:
space:
mode:
authorrohit <rohit.arondekar@gmail.com>2010-09-19 13:09:42 +0530
committerSantiago Pastorino <santiago@wyeworks.com>2010-09-19 16:45:29 -0700
commitfd53bc85e7c4f57edbff1dd68b37cca320efee77 (patch)
tree976f65b3e54e0257fffd0b5c5963582b3c15540d /railties/test/application
parent88a82bcb2dbb1f65382583d1fad7ad0c72e0022f (diff)
downloadrails-fd53bc85e7c4f57edbff1dd68b37cca320efee77.tar.gz
rails-fd53bc85e7c4f57edbff1dd68b37cca320efee77.tar.bz2
rails-fd53bc85e7c4f57edbff1dd68b37cca320efee77.zip
Send 'rails runner' help message to stdout instead of stderr.
[#5661 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'railties/test/application')
-rw-r--r--railties/test/application/runner_test.rb3
1 files changed, 1 insertions, 2 deletions
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