Sha256: 822e6a32eb9f63003eace086118a66e812d00006c7fb926eedcb075484c42a35
Contents?: true
Size: 464 Bytes
Versions: 3
Compression:
Stored size: 464 Bytes
Contents
require File.join(File.dirname(__FILE__), "test_cli_helper.rb") require 'rbkb/cli/chars' class TestCliChars < Test::Unit::TestCase include CliTest def setup @cli_class = Rbkb::Cli::Chars super() end def test_chars assert_equal 0, go_with_args(%w(1000 A)) assert_equal "A"*1000, @stdout_io.string end def test_bad_arguments assert_equal 1, go_with_args(["asdf"]) assert_match(/bad arguments/i, @stderr_io.string) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rbkb-0.7.2 | test/test_cli_chars.rb |
rbkb-0.7.1 | test/test_cli_chars.rb |
rbkb-0.7.0 | test/test_cli_chars.rb |