Sha256: 6e83ba3cee80153e45d00bc3e4d29afe841d367f289eb0e8bf6a056543e70c78
Contents?: true
Size: 324 Bytes
Versions: 3
Compression:
Stored size: 324 Bytes
Contents
require 'spec/helper' describe 'String#color' do it 'should define methods to return ANSI strings' do %w[reset bold dark underline blink negative black red green yellow blue magenta cyan white].each do |m| "string".respond_to? m "string".send(m).should match(/\e\[\d+mstring\e\[0m/) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ramaze-0.1.4 | spec/snippets/string/color.rb |
ramaze-0.2.1 | spec/snippets/string/color.rb |
ramaze-0.2.0 | spec/snippets/string/color.rb |