Expecta+ContainerClasses 1.0.2

Expecta+ContainerClasses 1.0.2

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Sep 2015

Maintained by Orta Therox.


Downloads

Total9,198
Week0
Month4

Installs

Apps2
Test Targets12
powered by Segment

GitHub

Stars8
Watchers0
Forks0
Issues0
Contributors1
Pull Requests0

Code

Files2
LOCLines of Code 44


What it does

The best example is testing API callbacks for types:

it(@"does something from an API", ^AsyncBlock {

    ARImageDownloader *downloader = [[ARImageDownloader alloc] init];
        [downloader downloadImages:^(NSArray *objects) {
        ...
        expect(objects).to.containInstancesOfClass(ARImageFormat.class);
        ...
        done();
    }];
});

if you prefer you can also use onlyContainInstancesOfClass. Also gives back a useful fail message telling you what other classes have sneaked into your set or an array.

Installation

It's likely that you'll want this in a testing subset, this usually looks like:

target 'MyApp Tests', :exclusive => true do
    pod 'Specta',      '~> 0.3'
    pod 'Expecta',     '~> 0.3'
    pod 'Expecta+ContainerClasses', '~> 1.0'
end

Author

@Orta, [email protected]

http://orta.github.io

License

Expecta+ContainerClasses is available under the MIT license. See the LICENSE file for more info.