diff options
Diffstat (limited to 'railties/test/application/help_test.rb')
-rw-r--r-- | railties/test/application/help_test.rb | 25 |
1 files changed, 25 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..f728fc3b85 --- /dev/null +++ b/railties/test/application/help_test.rb @@ -0,0 +1,25 @@ +# frozen_string_literal: true + +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 = rails("help") + assert_match "The most common rails commands are", output + end + + test "short-cut alias works" do + output = rails("-h") + assert_match "The most common rails commands are", output + end +end |