test/test_basic_root.rb in cri-2.6.1 vs test/test_basic_root.rb in cri-2.7.0
- old
+ new
@@ -1,17 +1,17 @@
# encoding: utf-8
-class Cri::BasicRootTestCase < Cri::TestCase
+module Cri
+ class BasicRootTestCase < Cri::TestCase
+ def test_run_with_help
+ cmd = Cri::Command.new_basic_root
- def test_run_with_help
- cmd = Cri::Command.new_basic_root
-
- stdout, stderr = capture_io_while do
- assert_raises SystemExit do
- cmd.run(%w( -h ))
+ stdout, _stderr = capture_io_while do
+ assert_raises SystemExit do
+ cmd.run(%w( -h ))
+ end
end
- end
- assert stdout =~ /COMMANDS.*\n.*help.*show help/
+ assert stdout =~ /COMMANDS.*\n.*help.*show help/
+ end
end
-
end