Sha256: 2dec795658f73e2ab32aefa2f97bcfa1068568d3d859c3964bfdd276a93682d4
Contents?: true
Size: 913 Bytes
Versions: 11
Compression:
Stored size: 913 Bytes
Contents
require_relative '../../lib/commands' module Unipept class UnipeptTestCase < Unipept::TestCase def test_help out, _err = capture_io_while do assert_raises SystemExit do Commands::Unipept.run(%w[-h]) end end assert(out.include?('show help for this command')) out, _err = capture_io_while do assert_raises SystemExit do Commands::Unipept.run(%w[--help]) end end assert(out.include?('show help for this command')) end def test_no_valid_subcommand _out, err = capture_io_while do assert_raises SystemExit do Commands::Unipept.run(%w[]) end end assert(err.include?('show help for this command')) end def test_version out, _err = capture_io_while do Commands::Unipept.run(%w[-v]) end assert_equal(VERSION, out.chomp) end end end
Version data entries
11 entries across 11 versions & 1 rubygems