Sha256: 52b35936dca0d074c975fd732364d524b77d38089cbea0c864768f7e4d8d4ab1
Contents?: true
Size: 573 Bytes
Versions: 1
Compression:
Stored size: 573 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper' describe AnsiColor do describe "color codes from names" do FOREGROUND_COLORS.each do |name, code| it "#{name} returns #{code}" do AnsiColor.send(name).should == code end end BACKGROUND_COLORS.each do |name, code| it "#{name}_background returns #{code}" do AnsiColor.send("#{name}_background").should == code end end EFFECTS.each do |name, code| it "#{name} returns #{code}" do AnsiColor.send("#{name}").should == code end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jcf-ansi_color-0.4.2 | spec/ansi_color_spec.rb |