Sha256: 303b4a9ccc3b377c3687936720caf915a8c2b193da7a168867524d5e76344c84
Contents?: true
Size: 600 Bytes
Versions: 1
Compression:
Stored size: 600 Bytes
Contents
require 'test_helper' require File.join(File.dirname(__FILE__), '..', 'lib/cliutils/ext/string_extensions') # Tests for the String extension methods 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cliutils-2.0.0 | test/string_extesions_test.rb |