Sha256: 7448497d17f76d1cb2f1445cd60044ddf8eef5e8df56c56f1c6065d3d97bb74c

Contents?: true

Size: 438 Bytes

Versions: 8

Compression:

Stored size: 438 Bytes

Contents

require File.join(File.dirname(__FILE__), "test_cli_helper.rb")

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

8 entries across 8 versions & 2 rubygems

Version Path
emonti-rbkb-0.6.6 test/test_cli_chars.rb
emonti-rbkb-0.6.7 test/test_cli_chars.rb
emonti-rbkb-0.6.8 test/test_cli_chars.rb
emonti-rbkb-0.6.9.1 test/test_cli_chars.rb
emonti-rbkb-0.6.9 test/test_cli_chars.rb
rbkb-0.6.12 test/test_cli_chars.rb
rbkb-0.6.11 test/test_cli_chars.rb
rbkb-0.6.10 test/test_cli_chars.rb