Sha256: 56c8dce1e5b04d0fb82e8fb3a3af5cca1019ac109a27f39259373f4faf7008f9

Contents?: true

Size: 316 Bytes

Versions: 2

Compression:

Stored size: 316 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe ZPNG::Color do

  ZPNG::Color::ANSI_COLORS.each do |color_sym|
    it "finds closest color for #{color_sym}" do
      color = ZPNG::Color.const_get(color_sym.to_s.upcase)
      color.closest_ansi_color.should == color_sym
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
zpng-0.1.2 spec/color_spec.rb
zpng-0.1.1 spec/color_spec.rb