Sha256: 80b523428c991fbc15e189d77e47a3ab4377b7f47dd9556cebf851db5bc7115b

Contents?: true

Size: 447 Bytes

Versions: 26

Compression:

Stored size: 447 Bytes

Contents

require File.join(File.dirname(__FILE__), '../../test_helper')

describe HammerCLI::Help::Text do
  describe '#build_string' do
    let(:text) { HammerCLI::Help::Text.new('text') }

    it 'builds string' do
      text.build_string.must_equal 'text'
    end

    it 'ensures that options are used' do
      text = HammerCLI::Help::Text.new('text', richtext: true)
      text.build_string.must_equal HighLine.color('text', :bold)
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
hammer_cli-3.7.0 test/unit/help/definition/text_test.rb
hammer_cli-3.5.1 test/unit/help/definition/text_test.rb
hammer_cli-3.6.0 test/unit/help/definition/text_test.rb
hammer_cli-3.5.0 test/unit/help/definition/text_test.rb
hammer_cli-3.4.0 test/unit/help/definition/text_test.rb
hammer_cli-3.3.0 test/unit/help/definition/text_test.rb
hammer_cli-3.2.0 test/unit/help/definition/text_test.rb
hammer_cli-3.1.1 test/unit/help/definition/text_test.rb
hammer_cli-3.0.2 test/unit/help/definition/text_test.rb
hammer_cli-3.1.0 test/unit/help/definition/text_test.rb
hammer_cli-3.0.1 test/unit/help/definition/text_test.rb
hammer_cli-3.0.0 test/unit/help/definition/text_test.rb
hammer_cli-2.5.1 test/unit/help/definition/text_test.rb
hammer_cli-2.5.0 test/unit/help/definition/text_test.rb
hammer_cli-2.3.1 test/unit/help/definition/text_test.rb
hammer_cli-2.4.0 test/unit/help/definition/text_test.rb
hammer_cli-2.3.0 test/unit/help/definition/text_test.rb
hammer_cli-2.2.1 test/unit/help/definition/text_test.rb
hammer_cli-2.1.2 test/unit/help/definition/text_test.rb
hammer_cli-2.2.0 test/unit/help/definition/text_test.rb