Authored by Craig Siemens

Fixed the tests failing on OS X

... ... @@ -10,11 +10,11 @@
SpecBegin(MASViewAttributeSpec)
__block UIView *view;
__block MAS_VIEW *view;
__block MASViewAttribute *viewAttribute;
beforeEach(^{
view = [UIView new];
view = [MAS_VIEW new];
viewAttribute = [[MASViewAttribute alloc] initWithView:view layoutAttribute:NSLayoutAttributeLeft];
});
... ... @@ -27,7 +27,7 @@ context(@"isEqual", ^{
});
it(@"should return NO when the view is different but the layoutAttribute is the same", ^{
UIView *otherView = [UIView new];
MAS_VIEW *otherView = [MAS_VIEW new];
MASViewAttribute *otherViewAttribute = [[MASViewAttribute alloc] initWithView:otherView
layoutAttribute:viewAttribute.layoutAttribute];
expect([viewAttribute isEqual:otherViewAttribute]).to.equal(NO);
... ... @@ -40,7 +40,7 @@ context(@"isEqual", ^{
});
it(@"should return NO when the view is different and the layoutAttribute is different", ^{
UIView *otherView = [UIView new];
MAS_VIEW *otherView = [MAS_VIEW new];
MASViewAttribute *otherViewAttribute = [[MASViewAttribute alloc] initWithView:otherView
layoutAttribute:NSLayoutAttributeRight];
expect([viewAttribute isEqual:otherViewAttribute]).to.equal(NO);
... ... @@ -56,7 +56,7 @@ context(@"hash", ^{
});
it(@"should return a different hash when the view is different but the layoutAttribute is the same", ^{
UIView *otherView = [UIView new];
MAS_VIEW *otherView = [MAS_VIEW new];
MASViewAttribute *otherViewAttribute = [[MASViewAttribute alloc] initWithView:otherView
layoutAttribute:viewAttribute.layoutAttribute];
expect([viewAttribute hash]).toNot.equal([otherViewAttribute hash]);
... ... @@ -69,7 +69,7 @@ context(@"hash", ^{
});
it(@"should return a different hash when the view is different and the layoutAttribute is different", ^{
UIView *otherView = [UIView new];
MAS_VIEW *otherView = [MAS_VIEW new];
MASViewAttribute *otherViewAttribute = [[MASViewAttribute alloc] initWithView:otherView
layoutAttribute:NSLayoutAttributeRight];
expect([viewAttribute hash]).toNot.equal([otherViewAttribute hash]);
... ...