Sha256: 4c8df2ebd8aa6aa507ad8790ae5f0cbde202033e434078ca4aac1527ef3e4ad3
Contents?: true
Size: 700 Bytes
Versions: 6
Compression:
Stored size: 700 Bytes
Contents
describe 'UIColor (CSS)' do it "should return css color names" do except_for = [:aqua, :fuchsia, :lime, :black, :blue, :brown, :cyan, :darkgray, :gray, :green, :lightgray, :magenta, :orange, :purple, :red, :yellow, :white] Symbol.css_colors.each do |name, val| next if except_for.include? name color = val.uicolor color.css_name.should == name color.to_s.should == "UIColor.color(#{name.inspect})" end end it "should return UIColor objects" do Symbol.uicolors.each do |name, method| name.uicolor.should == UIColor.send(method) end Symbol.css_colors.each do |name, val| name.uicolor.is_a?(UIColor).should == true end end end
Version data entries
6 entries across 6 versions & 1 rubygems