Sha256: 56614d3696be9025e0924469deec967c360acee50dee46f21f6e9b03b0a5c969

Contents?: true

Size: 441 Bytes

Versions: 5

Compression:

Stored size: 441 Bytes

Contents

describe 'UIColor' do

  it "should have a #uicolor method" do
    UIColor.redColor.uicolor.should == UIColor.redColor
  end

  it "should have a #uicolor(alpha) method" do
    UIColor.redColor.uicolor(0.5).alpha.should == 0.5
  end

  it "should have a #+(color) method" do
    new_color = UIColor.whiteColor + UIColor.blackColor
    new_color.red.should == 0.5
    new_color.green.should == 0.5
    new_color.blue.should == 0.5
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sugarcube-0.18.21 spec/uicolor_spec.rb
sugarcube-0.18.20 spec/uicolor_spec.rb
sugarcube-0.18.19 spec/uicolor_spec.rb
sugarcube-0.18.18 spec/uicolor_spec.rb
sugarcube-0.18.17 spec/uicolor_spec.rb