Sha256: 9c79bcd526fe3330ac57b4ef77b9614b342c842518e460f4be764c7cf0236586

Contents?: true

Size: 344 Bytes

Versions: 1

Compression:

Stored size: 344 Bytes

Contents

# encoding: utf-8

module Cri
  class BasicRootTestCase < Cri::TestCase
    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 ))
        end
      end

      assert stdout =~ /COMMANDS.*\n.*help.*show help/
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cri-2.7.0 test/test_basic_root.rb