Sha256: bc1073e55ee790647fb56c1262c81f5e76b1abe0a74c02d932f02e1aad359bc1
Contents?: true
Size: 533 Bytes
Versions: 5
Compression:
Stored size: 533 Bytes
Contents
# Copyright (c) 2009 Michael Fellinger m.fellinger@gmail.com # All files in this distribution are subject to the terms of the MIT license. require File.expand_path('../../../../lib/ramaze/spec/helper/snippets', __FILE__) 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
5 entries across 5 versions & 1 rubygems