Sha256: bb2c03d68ed655eb08fd18dd3774f74147028953595726480979ab9cfd09e3c3
Contents?: true
Size: 344 Bytes
Versions: 40
Compression:
Stored size: 344 Bytes
Contents
require 'lib/ramaze/spec/helper/snippets' 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
40 entries across 40 versions & 6 rubygems