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

Version Path
Pistos-ramaze-2009.06.12 spec/snippets/string/color.rb
manveru-ramaze-2009.07 spec/snippets/string/color.rb
ramaze-2011.12.28 spec/snippets/string/color.rb
ramaze-2011.10.23 spec/snippets/string/color.rb
ramaze-2011.07.25 spec/snippets/string/color.rb
ramaze-2011.01.30 spec/snippets/string/color.rb
ramaze-2011.01 spec/snippets/string/color.rb
ramaze-2010.06.18 spec/snippets/string/color.rb
ramaze-2010.04.04 spec/snippets/string/color.rb
ramaze-2010.04 spec/snippets/string/color.rb
ramaze-2010.03 spec/snippets/string/color.rb
ramaze-2010.01 spec/snippets/string/color.rb
ramaze-2009.10 spec/snippets/string/color.rb
ramaze-2009.07 spec/snippets/string/color.rb