Sha256: 171f8df7b67e489c7c2dfe26f888263d699a4630943060905389554cdaa6751b
Contents?: true
Size: 774 Bytes
Versions: 44
Compression:
Stored size: 774 Bytes
Contents
require 'test_helper' class TC_testVerbatimWrapper < Clean::Test::TestCase include TestHelper test_that "verbatim wrapper handles nil" do Given { @wrapper = GLI::Commands::HelpModules::VerbatimWrapper.new(any_int,any_int) } When { @result = @wrapper.wrap(nil) } Then { assert_equal '',@result } end test_that "verbatim wrapper doesn't touch the input" do Given { @wrapper = GLI::Commands::HelpModules::VerbatimWrapper.new(any_int,any_int) @input = <<EOS |This is|an ASCII|table| +-------+--------+-----+ | foo | bar | baz | +-------+--------+-----+ EOS } When { @result = @wrapper.wrap(@input) } Then { assert_equal @input,@result } end end
Version data entries
44 entries across 44 versions & 2 rubygems