aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2011-06-10 18:46:27 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2011-06-10 18:48:50 +0530
commit880371ef2b4a2cb08f0c36ceba1eee41836bb739 (patch)
tree1494b6adf828bfe98450c61942a9a7ce80c540ce /railties/test
parent78acd17f3124a22485aa1bdcc64d7d1e6e69cb2d (diff)
downloadrails-880371ef2b4a2cb08f0c36ceba1eee41836bb739.tar.gz
rails-880371ef2b4a2cb08f0c36ceba1eee41836bb739.tar.bz2
rails-880371ef2b4a2cb08f0c36ceba1eee41836bb739.zip
make 'rails runner' show usage when run without any options
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/application/runner_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/test/application/runner_test.rb b/railties/test/application/runner_test.rb
index 4104bacae5..4468fa295e 100644
--- a/railties/test/application/runner_test.rb
+++ b/railties/test/application/runner_test.rb
@@ -22,6 +22,10 @@ module ApplicationTests
teardown_app
end
+ def test_should_include_runner_in_shebang_line_in_help_without_option
+ assert_match "/rails runner", Dir.chdir(app_path) { `bundle exec rails runner` }
+ end
+
def test_should_include_runner_in_shebang_line_in_help
assert_match "/rails runner", Dir.chdir(app_path) { `bundle exec rails runner --help` }
end