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

Version Path
Pistos-ramaze-2008.09 spec/snippets/string/color.rb
Pistos-ramaze-2008.12 spec/snippets/string/color.rb
Pistos-ramaze-2009.01 spec/snippets/string/color.rb
Pistos-ramaze-2009.02 spec/snippets/string/color.rb
Pistos-ramaze-2009.04.08 spec/snippets/string/color.rb
clivecrous-ramaze-0.3.9.5 spec/snippets/string/color.rb
manveru-ramaze-2008.07 spec/snippets/string/color.rb
manveru-ramaze-2008.08 spec/snippets/string/color.rb
manveru-ramaze-2008.09 spec/snippets/string/color.rb
manveru-ramaze-2008.10 spec/snippets/string/color.rb
manveru-ramaze-2008.12 spec/snippets/string/color.rb
manveru-ramaze-2009.01 spec/snippets/string/color.rb
manveru-ramaze-2009.04.01 spec/snippets/string/color.rb
manveru-ramaze-2009.04.08 spec/snippets/string/color.rb
manveru-ramaze-2009.04.18 spec/snippets/string/color.rb
manveru-ramaze-2009.04.22 spec/snippets/string/color.rb
manveru-ramaze-2009.04 spec/snippets/string/color.rb
manveru-ramaze-2009.05.08 spec/snippets/string/color.rb
manveru-ramaze-2009.05 spec/snippets/string/color.rb
manveru-ramaze-2009.06.04 spec/snippets/string/color.rb