Sha256: e424cd46ac8a1557065847207c124fd08b7cbc5c605f78b9ebcc1ad45f8df683

Contents?: true

Size: 434 Bytes

Versions: 17

Compression:

Stored size: 434 Bytes

Contents

describe CALayer do

  it "should support <<" do
    layer = CALayer.layer
    another_layer = CALayer.layer
    layer << another_layer
    layer.sublayers.should == [another_layer]
  end

  it "should support unshift" do
    layer = CALayer.layer
    sub_layer1 = CALayer.layer
    sub_layer2 = CALayer.layer
    layer.unshift sub_layer1
    layer.unshift sub_layer2
    layer.sublayers.should == [sub_layer2, sub_layer1]
  end

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
sugarcube-4.0.0 spec/cocoa/calayer_spec.rb
sugarcube-3.5.0 spec/cocoa/calayer_spec.rb
sugarcube-3.4.2 spec/cocoa/calayer_spec.rb
sugarcube-3.4.1 spec/cocoa/calayer_spec.rb
sugarcube-3.4.0 spec/cocoa/calayer_spec.rb
sugarcube-3.3.7 spec/cocoa/calayer_spec.rb
sugarcube-3.3.6 spec/cocoa/calayer_spec.rb
sugarcube-3.3.5 spec/cocoa/calayer_spec.rb
sugarcube-3.3.4 spec/cocoa/calayer_spec.rb
sugarcube-3.3.3 spec/cocoa/calayer_spec.rb
sugarcube-3.3.2 spec/cocoa/calayer_spec.rb
sugarcube-3.3.1 spec/cocoa/calayer_spec.rb
sugarcube-3.3.0 spec/cocoa/calayer_spec.rb
sugarcube-3.2.0 spec/cocoa/calayer_spec.rb
sugarcube-3.1.1 spec/cocoa/calayer_spec.rb
sugarcube-3.1.0 spec/cocoa/calayer_spec.rb
sugarcube-3.0.8 spec/cocoa/calayer_spec.rb