Sha256: 7d259b82495007bc642718fe9128374d14294457b42b337e08acc54b207a8d70

Contents?: true

Size: 539 Bytes

Versions: 42

Compression:

Stored size: 539 Bytes

Contents

describe 'Constraints - priority lookup' do

  it 'should return 1000' do
    MotionKit::Constraint.priority_lookup(:required).should == 1000
    MotionKit::Constraint.priority_lookup(1000).should == 1000
  end

  it 'should return 250' do
    MotionKit::Constraint.priority_lookup(:low).should == 250
    MotionKit::Constraint.priority_lookup(250).should == 250
  end

  it 'should raise InvalidPriorityError' do
    -> do
      MotionKit::Constraint.priority_lookup(:foo)
    end.should.raise(MotionKit::InvalidPriorityError)
  end

end

Version data entries

42 entries across 36 versions & 1 rubygems

Version Path
motion-kit-1.1.1 spec/tvos/constraints_helpers/priority_lookup_spec.rb
motion-kit-1.1.1 spec/ios/constraints_helpers/priority_lookup_spec.rb
motion-kit-1.1.0 spec/tvos/constraints_helpers/priority_lookup_spec.rb
motion-kit-1.1.0 spec/ios/constraints_helpers/priority_lookup_spec.rb
motion-kit-1.0.3 spec/tvos/constraints_helpers/priority_lookup_spec.rb
motion-kit-1.0.3 spec/ios/constraints_helpers/priority_lookup_spec.rb
motion-kit-1.0.2 spec/ios/constraints_helpers/priority_lookup_spec.rb
motion-kit-1.0.2 spec/tvos/constraints_helpers/priority_lookup_spec.rb
motion-kit-1.0.1 spec/ios/constraints_helpers/priority_lookup_spec.rb
motion-kit-1.0.1 spec/tvos/constraints_helpers/priority_lookup_spec.rb
motion-kit-1.0.0 spec/tvos/constraints_helpers/priority_lookup_spec.rb
motion-kit-1.0.0 spec/ios/constraints_helpers/priority_lookup_spec.rb
motion-kit-0.18.0 spec/ios/constraints_helpers/priority_lookup_spec.rb
motion-kit-0.17.0 spec/ios/constraints_helpers/priority_lookup_spec.rb
motion-kit-0.16.0 spec/ios/constraints_helpers/priority_lookup_spec.rb
motion-kit-0.15.0 spec/ios/constraints_helpers/priority_lookup_spec.rb
motion-kit-0.14.2 spec/ios/constraints_helpers/priority_lookup_spec.rb
motion-kit-0.14.1 spec/ios/constraints_helpers/priority_lookup_spec.rb
motion-kit-0.14.0 spec/ios/constraints_helpers/priority_lookup_spec.rb
motion-kit-0.13.0 spec/ios/constraints_helpers/priority_lookup_spec.rb