MASCompositeConstraintSpec.m 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. //
  2. // MASCompositeConstraintSpec.m
  3. // Masonry
  4. //
  5. // Created by Jonas Budelmann on 22/07/13.
  6. // Copyright (c) 2013 cloudling. All rights reserved.
  7. //
  8. #import "MASCompositeConstraint.h"
  9. SpecBegin(MASCompositeConstraint)
  10. __block MASCompositeConstraint *composite;
  11. __block id<MASConstraintDelegate> delegate;
  12. beforeEach(^{
  13. delegate = mockProtocol(@protocol(MASConstraintDelegate));
  14. });
  15. describe(@"commit", ^{
  16. });
  17. describe(@"centering", ^{
  18. beforeEach(^{
  19. composite = [[MASCompositeConstraint alloc] initWithView:mock(UIView.class) type:MASCompositeViewConstraintTypeCenter];
  20. composite.delegate = delegate;
  21. });
  22. xit(@"should forward to children", ^{});
  23. });
  24. describe(@"sizing", ^{
  25. beforeEach(^{
  26. composite = [[MASCompositeConstraint alloc] initWithView:mock(UIView.class) type:MASCompositeViewConstraintTypeCenter];
  27. composite.delegate = delegate;
  28. });
  29. xit(@"should forward to children", ^{});
  30. });
  31. describe(@"alignment", ^{
  32. beforeEach(^{
  33. composite = [[MASCompositeConstraint alloc] initWithView:mock(UIView.class) type:MASCompositeViewConstraintTypeCenter];
  34. composite.delegate = delegate;
  35. });
  36. xit(@"should forward to children", ^{});
  37. });
  38. SpecEnd