Sha256: 89f496efd164866242c08cdbc9621788dd54c5ad7480ade1de4dc0e6adc81357

Contents?: true

Size: 299 Bytes

Versions: 25

Compression:

Stored size: 299 Bytes

Contents

describe "UIView" do

  it "should convert to a UIImage" do
    test = UIView.alloc.initWithFrame([[0, 0], [10, 10]])
    image = test.uiimage
    image.class.should == UIImage
    CGSizeEqualToSize(image.size, [10, 10]).should == true
    image.scale.should == UIScreen.mainScreen.scale
  end

end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
sugarcube-0.16.5 spec/uiview_spec.rb
sugarcube-0.16.2 spec/uiview_spec.rb
sugarcube-0.16 spec/uiview_spec.rb
sugarcube-0.15.5 spec/uiview_spec.rb
sugarcube-0.15.3 spec/uiview_spec.rb