Sha256: ede26c7aac7d6ec118a0b1460a22e66593c2e3c464662616a360110a4c137f34
Contents?: true
Size: 534 Bytes
Versions: 14
Compression:
Stored size: 534 Bytes
Contents
# Copyright (c) 2009 Michael Fellinger m.fellinger@gmail.com # All files in this distribution are subject to the terms of the Ruby 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
14 entries across 14 versions & 3 rubygems