diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-02-24 09:17:13 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-02-24 09:17:13 +0900 |
commit | e69a0e34494de8d91f53c0e1647690a8775a9536 (patch) | |
tree | 225f60ad0616ec70c6834f630be038f132584f4b /railties/test/application | |
parent | 08d4aaae0c8110e75237d26029b696a2bcd00b1f (diff) | |
download | rails-e69a0e34494de8d91f53c0e1647690a8775a9536.tar.gz rails-e69a0e34494de8d91f53c0e1647690a8775a9536.tar.bz2 rails-e69a0e34494de8d91f53c0e1647690a8775a9536.zip |
Make help short-cut alias to work
Diffstat (limited to 'railties/test/application')
-rw-r--r-- | railties/test/application/help_test.rb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/railties/test/application/help_test.rb b/railties/test/application/help_test.rb new file mode 100644 index 0000000000..0c3fe8bfa3 --- /dev/null +++ b/railties/test/application/help_test.rb @@ -0,0 +1,23 @@ +require "isolation/abstract_unit" + +class HelpTest < ActiveSupport::TestCase + include ActiveSupport::Testing::Isolation + + def setup + build_app + end + + def teardown + teardown_app + end + + test "command works" do + output = Dir.chdir(app_path) { `bin/rails help` } + assert_match "The most common rails commands are", output + end + + test "short-cut alias works" do + output = Dir.chdir(app_path) { `bin/rails -h` } + assert_match "The most common rails commands are", output + end +end |