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.9.1 | spec/ios/constraints_helpers/priority_lookup_spec.rb |
motion-kit-0.9.0 | spec/ios/constraints_helpers/priority_lookup_spec.rb |