Sha256: 9e0522f52be4264866d295d4222fa6c9aa13dbb9182c307152476195b06426e3
Contents?: true
Size: 913 Bytes
Versions: 4
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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
unipept-1.4.0 | test/commands/test_unipept.rb |
unipept-1.3.0 | test/commands/test_unipept.rb |
unipept-1.2.0 | test/commands/test_unipept.rb |
unipept-1.1.3 | test/commands/test_unipept.rb |