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.


Downloads

Total2,186
Week0
Month0

Installs

Apps2
Test Targets58
powered by Segment

GitHub

Stars46
Watchers3
Forks4
Issues1
Contributors2
Pull Requests0

Code

Files5
LOCLines of Code 104


 
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.