Skip to content

Commit 25fdb85

Browse files
committed
update testDisplayLayoutConstraintKey case
1 parent 9125cbf commit 25fdb85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/Specs/NSLayoutConstraint+MASDebugAdditionsSpec.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ - (void)testDisplayLayoutConstraintKey {
3535
MASLayoutConstraint *layoutConstraint = [MASLayoutConstraint constraintWithItem:newView1 attribute:NSLayoutAttributeBaseline relatedBy:NSLayoutRelationEqual toItem:newView2 attribute:NSLayoutAttributeTop multiplier:2 constant:300];
3636
layoutConstraint.mas_key = @"helloConstraint";
3737

38-
NSString *description = [NSString stringWithFormat:@"<MASLayoutConstraint:helloConstraint %@:newView1.baseline == %@:newView2.top * 2 + 300>", MAS_VIEW.class, MAS_VIEW.class];
38+
NSString *description = [NSString stringWithFormat:@"<MASLayoutConstraint:helloConstraint %@:newView1.lastBaseline == %@:newView2.top * 2 + 300>", MAS_VIEW.class, MAS_VIEW.class];
3939
expect([layoutConstraint description]).to.equal(description);
4040
}
4141

@@ -57,4 +57,4 @@ - (void)testDisplayConstraintKey {
5757
expect([superview.constraints[0] description]).to.equal(description);
5858
}
5959

60-
SpecEnd
60+
SpecEnd

0 commit comments

Comments
 (0)