Sha256: 5b84a0ff5cd54ade58b1f18eabb315a69179cbd6f655d2883ff5685193db910e

Contents?: true

Size: 589 Bytes

Versions: 17

Compression:

Stored size: 589 Bytes

Contents

describe 'CALayerHelpers' do

  before do
    @subject = TestCALayerLayout.new.build
  end

  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

Version data entries

17 entries across 11 versions & 1 rubygems

Version Path
motion-kit-1.1.1 spec/ios/calayer_spec.rb
motion-kit-1.1.1 spec/tvos/calayer_spec.rb
motion-kit-1.1.0 spec/ios/calayer_spec.rb
motion-kit-1.1.0 spec/tvos/calayer_spec.rb
motion-kit-1.0.3 spec/tvos/calayer_spec.rb
motion-kit-1.0.3 spec/ios/calayer_spec.rb
motion-kit-1.0.2 spec/tvos/calayer_spec.rb
motion-kit-1.0.2 spec/ios/calayer_spec.rb
motion-kit-1.0.1 spec/tvos/calayer_spec.rb
motion-kit-1.0.1 spec/ios/calayer_spec.rb
motion-kit-1.0.0 spec/ios/calayer_spec.rb
motion-kit-1.0.0 spec/tvos/calayer_spec.rb
motion-kit-0.18.0 spec/ios/calayer_spec.rb
motion-kit-0.17.0 spec/ios/calayer_spec.rb
motion-kit-0.16.0 spec/ios/calayer_spec.rb
motion-kit-0.15.0 spec/ios/calayer_spec.rb
motion-kit-0.14.2 spec/ios/calayer_spec.rb