spec/ios/calayer_spec.rb in motion-kit-0.14.1 vs spec/ios/calayer_spec.rb in motion-kit-0.14.2

- old
+ new

@@ -1,10 +1,23 @@ -describe CALayer do +describe 'CALayerHelpers' do before do + @subject = TestCALayerLayout.new.build end - it 'should style a CALayer' do - 1.should == 1 + describe 'should style a CALayer' do + describe 'should style :gradient layer' do + it 'should set the frame' do + @subject.get(:gradient).frame.should == CGRectMake(0, 0, 20, 20) + end + it 'should set the colors' do + @subject.get(:gradient).colors.length.should == 2 + end + end + describe 'should style :bottom layer' do + it 'should set the frame' do + @subject.get(:bottom).frame.should == CGRectMake(0, 20, 20, 10) + end + end end end