Sha256: 7d7ad6b037f1f969fd0465ef7fe498bbcc8e2e7a5cad78bf0a11ad1440e501aa
Contents?: true
Size: 1.04 KB
Versions: 42
Compression:
Stored size: 1.04 KB
Contents
describe 'Constraints - relationship lookup' do it 'should return NSLayoutRelationEqual' do MotionKit::Constraint.relationship_lookup(:equal).should == NSLayoutRelationEqual MotionKit::Constraint.relationship_lookup(NSLayoutRelationEqual).should == NSLayoutRelationEqual end it 'should return NSLayoutRelationGreaterThanOrEqual' do MotionKit::Constraint.relationship_lookup(:gte).should == NSLayoutRelationGreaterThanOrEqual MotionKit::Constraint.relationship_lookup(NSLayoutRelationGreaterThanOrEqual).should == NSLayoutRelationGreaterThanOrEqual end it 'should raise InvalidRelationshipError' do -> do MotionKit::Constraint.relationship_lookup(:foo) end.should.raise(MotionKit::InvalidRelationshipError) end it 'should reverse NSLayoutRelationEqual' do MotionKit::Constraint.relationship_reverse(NSLayoutRelationEqual).should == :equal end it 'should reverse NSLayoutRelationGreaterThanOrEqual' do MotionKit::Constraint.relationship_reverse(NSLayoutRelationGreaterThanOrEqual).should == :gte end end
Version data entries
42 entries across 36 versions & 1 rubygems
Version | Path |
---|---|
motion-kit-0.9.1 | spec/ios/constraints_helpers/relationship_lookup_spec.rb |
motion-kit-0.9.0 | spec/ios/constraints_helpers/relationship_lookup_spec.rb |