Sha256: 2096d80cfec6ceea7b5dd0bb17e4ae9028f9cc046946f2fef45d1079cb8e042d
Contents?: true
Size: 920 Bytes
Versions: 21
Compression:
Stored size: 920 Bytes
Contents
describe TestLayerLayout do before do @subject = TestLayerLayout.new end it 'should create a CALayer root' do @subject.view.should.be.kind_of(CALayer) end it 'should add sublayers' do @subject.view.sublayers.length.should == 3 end describe 'should have styled sublayers' do before do @subject = TestLayerLayout.new end it 'should have a CALayer' do @subject.view.sublayers[0].opacity.should == 0.5 @subject.view.sublayers[0].backgroundColor.should.not == nil end it 'should have a CAGradientLayer' do @subject.view.sublayers[1].opacity.should == 0.5 @subject.view.sublayers[1].colors.should.not == nil @subject.view.sublayers[1].colors.length.should == 2 end it 'should have a CAShapeLayer' do @subject.view.sublayers[2].opacity.should == 0.5 @subject.view.sublayers[2].path.should.not == nil end end end
Version data entries
21 entries across 21 versions & 1 rubygems