12345678910111213141516171819202122232425262728293031 |
- //
- // View+MASAdditionsSpec.m
- // Masonry
- //
- // Created by Jonas Budelmann on 8/09/13.
- // Copyright (c) 2013 Jonas Budelmann. All rights reserved.
- //
- #import "View+MASAdditions.h"
- SpecBegin(View_MASAdditions)
- - (void)testSetTranslatesAutoresizingMaskIntoConstraints {
- MAS_VIEW *newView = MAS_VIEW.new;
- [newView mas_makeConstraints:^(MASConstraintMaker *make) {
- expect(make.updateExisting).to.beFalsy();
- }];
- expect(newView.translatesAutoresizingMaskIntoConstraints).to.beFalsy();
- }
- - (void)testSetUpdateExisting {
- MAS_VIEW *newView = MAS_VIEW.new;
- [newView mas_updateConstraints:^(MASConstraintMaker *make) {
- expect(make.updateExisting).to.beTruthy();
- }];
- expect(newView.translatesAutoresizingMaskIntoConstraints).to.beFalsy();
- }
- SpecEnd
|