Authored by Robert Payne
Committed by GitHub

Merge pull request #377 from game3108/master

bug fix: use greaterThanOrEqualTo or lessThanOrEqualTo to add a attri…
@@ -175,6 +175,7 @@ static char kInstalledConstraintsKey; @@ -175,6 +175,7 @@ static char kInstalledConstraintsKey;
175 NSMutableArray *children = NSMutableArray.new; 175 NSMutableArray *children = NSMutableArray.new;
176 for (id attr in attribute) { 176 for (id attr in attribute) {
177 MASViewConstraint *viewConstraint = [self copy]; 177 MASViewConstraint *viewConstraint = [self copy];
  178 + viewConstraint.layoutRelation = relation;
178 viewConstraint.secondViewAttribute = attr; 179 viewConstraint.secondViewAttribute = attr;
179 [children addObject:viewConstraint]; 180 [children addObject:viewConstraint];
180 } 181 }
@@ -53,7 +53,7 @@ SpecBegin(NSLayoutConstraint_MASDebugAdditions) @@ -53,7 +53,7 @@ SpecBegin(NSLayoutConstraint_MASDebugAdditions)
53 }]; 53 }];
54 54
55 55
56 - NSString *description = [NSString stringWithFormat:@"<MASLayoutConstraint:left[0] %@:newView1.left == %@:newView2.left>", MAS_VIEW.class, MAS_VIEW.class]; 56 + NSString *description = [NSString stringWithFormat:@"<MASLayoutConstraint:left[0] %@:newView1.left >= %@:newView2.left>", MAS_VIEW.class, MAS_VIEW.class];
57 expect([superview.constraints[0] description]).to.equal(description); 57 expect([superview.constraints[0] description]).to.equal(description);
58 } 58 }
59 59