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.18.21 spec/uiview_spec.rb
sugarcube-0.18.20 spec/uiview_spec.rb
sugarcube-0.18.19 spec/uiview_spec.rb
sugarcube-0.18.18 spec/uiview_spec.rb
sugarcube-0.18.17 spec/uiview_spec.rb
sugarcube-0.18.16 spec/uiview_spec.rb
sugarcube-0.18.12 spec/uiview_spec.rb
sugarcube-0.18.11 spec/uiview_spec.rb
sugarcube-0.18.10 spec/uiview_spec.rb
sugarcube-0.18.9 spec/uiview_spec.rb
sugarcube-0.18.8 spec/uiview_spec.rb
sugarcube-0.18.7 spec/uiview_spec.rb
sugarcube-0.18.6 spec/uiview_spec.rb
sugarcube-0.18.5 spec/uiview_spec.rb
sugarcube-0.18.4 spec/uiview_spec.rb
sugarcube-0.18.3 spec/uiview_spec.rb
sugarcube-0.18.2 spec/uiview_spec.rb
sugarcube-0.18.1 spec/uiview_spec.rb
sugarcube-0.18.0 spec/uiview_spec.rb
sugarcube-0.16.9 spec/uiview_spec.rb