Expecta+ReactiveCocoa 0.2.0

Expecta+ReactiveCocoa 0.2.0

TestsTested
LangLanguage Obj-CObjective C
License BSD
ReleasedLast Release Dec 2014

Maintained by Kyle Fuller.



 
Depends on:
Expecta>= 0
ReactiveCocoa>= 0
 

Expecta+ReactiveCocoa provides a set of matchers for using Expecta with ReactiveCocoa. Providing the following matchers:

  • expect(signal).will.complete()
  • expect(signal).will.completeSending(@[@YES, @NO, @YES])
  • expect(signal).will.error()

Usage

#import <Expecta+ReactiveCocoa/Expecta+ReactiveCocoa.h>

describe(@"a coupon manager", ^{
  __block EDNSessionManager *manager;

  beforeAll(^{
    manager = [[EDNSessionManager alloc] init];
  });

  context(@"when redeeming a coupon code", ^{
    it(@"should complete with a successful coupon code", ^{
       RACSignal *signal = [manager redeemCoupon:@"XAXAXA"];
       expect(signal).will.complete();
     });

    it(@"should fail with an invalid coupon code", ^{
       RACSignal *signal = [manager redeemCoupon:@"INVALID"];
       expect(signal).will.error();
    });
  });
});

Installation

target 'PalaverTests' do
  pod 'Expecta+ReactiveCocoa'
end

License

Expecta+ReactiveCocoa is available under the BSD license. See LICENSE for more information.