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-0.12.0 spec/ios/constraints_helpers/priority_lookup_spec.rb
motion-kit-0.11.2 spec/ios/constraints_helpers/priority_lookup_spec.rb
motion-kit-0.11.1 spec/ios/constraints_helpers/priority_lookup_spec.rb
motion-kit-0.11.0 spec/ios/constraints_helpers/priority_lookup_spec.rb
motion-kit-0.10.11 spec/ios/constraints_helpers/priority_lookup_spec.rb
motion-kit-0.10.10 spec/ios/constraints_helpers/priority_lookup_spec.rb
motion-kit-0.10.9 spec/ios/constraints_helpers/priority_lookup_spec.rb
motion-kit-0.10.8 spec/ios/constraints_helpers/priority_lookup_spec.rb
motion-kit-0.10.7 spec/ios/constraints_helpers/priority_lookup_spec.rb
motion-kit-0.10.6 spec/ios/constraints_helpers/priority_lookup_spec.rb
motion-kit-0.10.5 spec/ios/constraints_helpers/priority_lookup_spec.rb
motion-kit-0.10.4 spec/ios/constraints_helpers/priority_lookup_spec.rb
motion-kit-0.10.3 spec/ios/constraints_helpers/priority_lookup_spec.rb
motion-kit-0.10.2 spec/ios/constraints_helpers/priority_lookup_spec.rb
motion-kit-0.10.1 spec/ios/constraints_helpers/priority_lookup_spec.rb
motion-kit-0.10.0 spec/ios/constraints_helpers/priority_lookup_spec.rb
motion-kit-0.9.6 spec/ios/constraints_helpers/priority_lookup_spec.rb
motion-kit-0.9.4 spec/ios/constraints_helpers/priority_lookup_spec.rb
motion-kit-0.9.3 spec/ios/constraints_helpers/priority_lookup_spec.rb
motion-kit-0.9.2 spec/ios/constraints_helpers/priority_lookup_spec.rb