| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- //
- // UIButtonRACSupportSpec.m
- // ReactiveCocoa
- //
- // Created by Ash Furrow on 2013-06-06.
- // Copyright (c) 2013 GitHub, Inc. All rights reserved.
- //
- #import <Quick/Quick.h>
- #import <Nimble/Nimble.h>
- #import "RACControlCommandExamples.h"
- #import "RACTestUIButton.h"
- #import "UIButton+RACCommandSupport.h"
- #import "RACCommand.h"
- #import "RACDisposable.h"
- QuickSpecBegin(UIButtonRACSupportSpec)
- qck_describe(@"UIButton", ^{
- __block UIButton *button;
-
- qck_beforeEach(^{
- button = [RACTestUIButton button];
- expect(button).notTo(beNil());
- });
- qck_itBehavesLike(RACControlCommandExamples, ^{
- return @{
- RACControlCommandExampleControl: button,
- RACControlCommandExampleActivateBlock: ^(UIButton *button) {
- #pragma clang diagnostic push
- #pragma clang diagnostic ignored "-Warc-performSelector-leaks"
- [button sendActionsForControlEvents:UIControlEventTouchUpInside];
- #pragma clang diagnostic pop
- }
- };
- });
- });
- QuickSpecEnd
|