Sha256: 5fec7303c4b5765fe35fd67a81220a1cabd84b96758224a1325a2e26b247fa53

Contents?: true

Size: 556 Bytes

Versions: 14

Compression:

Stored size: 556 Bytes

Contents

require 'test/unit'

require File.join(File.dirname(__FILE__), '..', 'lib/cliutils/ext/String+Extensions')

class TestStringExtensions < Test::Unit::TestCase
  def test_custom_colors
    assert_output("\e[34mtest\e[0m\n") { puts 'test'.blue }
    assert_output("\e[36mtest\e[0m\n") { puts 'test'.cyan }
    assert_output("\e[32mtest\e[0m\n") { puts 'test'.green }
    assert_output("\e[35mtest\e[0m\n") { puts 'test'.purple }
    assert_output("\e[31mtest\e[0m\n") { puts 'test'.red }
    assert_output("\e[33mtest\e[0m\n") { puts 'test'.yellow }
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
cliutils-1.2.3 test/string_extesions_test.rb
cliutils-1.2.2 test/string_extesions_test.rb
cliutils-1.2.1 test/string_extesions_test.rb
cliutils-1.2.0 test/string_extesions_test.rb
cliutils-1.1.1 test/string_extesions_test.rb
cliutils-1.1.0 test/string_extesions_test.rb
cliutils-1.0.7 test/string_extesions_test.rb
cliutils-1.0.6 test/string_extesions_test.rb
cliutils-1.0.5 test/string_extesions_test.rb
cliutils-1.0.4 test/string_extesions_test.rb
cliutils-1.0.3 test/string_extesions_test.rb
cliutils-1.0.2 test/string_extesions_test.rb
cliutils-1.0.1 test/string_extesions_test.rb
cliutils-1.0.0 test/string_extesions_test.rb