Sha256: 3c272d38dfa09cf3f98664245ef508732050c2372cc6dd2b17998f9f746c2ab4
Contents?: true
Size: 607 Bytes
Versions: 6
Compression:
Stored size: 607 Bytes
Contents
require_relative "test_helper" class TerminalTest < Minitest::Test include TestHelper def test_handles_nil @wrapper = GLI::Commands::HelpModules::VerbatimWrapper.new(rand(100),rand(100)) @result = @wrapper.wrap(nil) assert_equal '',@result end def test_does_not_touch_input @wrapper = GLI::Commands::HelpModules::VerbatimWrapper.new(rand(100),rand(100)) @input = <<EOS |This is|an ASCII|table| +-------+--------+-----+ | foo | bar | baz | +-------+--------+-----+ EOS @result = @wrapper.wrap(@input) assert_equal @input,@result end end
Version data entries
6 entries across 6 versions & 1 rubygems