Sha256: e723e70d92e84d6fc0aaa76f4fd36481c2b9643f43f83cb24debcac3d0076350
Contents?: true
Size: 633 Bytes
Versions: 1
Compression:
Stored size: 633 Bytes
Contents
require "#{File.expand_path(File.join(File.dirname(__FILE__), "helper.rb"))}" class TestMultipleCommands < MiniTest::Unit::TestCase def setup require 'helpers/multiple_commands.rb' @commands = Commandeer.commands end def test_has_all_commands ["command_one", "command_two"].each do |c| assert_includes(@commands.keys, c) end end # To ensure top-level commands are new-lined def test_format_output out, err = capture_io do begin Commandeer.parse!('') rescue SystemExit end end assert_match(out, /^.*Usage:.*\n\n\tcommand_one*\n\tcommand_two\n.*$/) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
commandeer-0.1.1 | test/test_multiple_commands.rb |