Sha256: 283d7d8c6de13ddc0c5cf057fdfde12dfaeca71e03c948a6918da67eb9a25b59

Contents?: true

Size: 782 Bytes

Versions: 4

Compression:

Stored size: 782 Bytes

Contents

#import "Kiwi.h"
#import "ObjectiveSugar.h"
#import "MyFirstLibObject.h"

SPEC_BEGIN(ExampleSpec)

describe(@"an object from the static library", ^{
    
    __block MyFirstLibObject *item;
    
    beforeEach(^{
        item = [[MyFirstLibObject alloc] init];
    });
    
    context(@"when initialised", ^{
        it(@"should have been created", ^{
            [item shouldNotBeNil];
        });
        
        it(@"should get the name", ^{
            [[[item name] should] equal:@"my-first-lib-object"];
        });
    });
    
    it(@"should be able to use objective sugar", ^{
        NSArray *mapped = [@[@1, @2, @3] map:^id(id element) {
            return [element stringValue];
        }];
        [[mapped should] equal:@[@"1", @"2", @"3"]];
    });
});

SPEC_END

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
xcbootstrap-0.1.0 templates/static-lib/lib/test/ExampleSpec.m
xcbootstrap-0.0.3 templates/static-lib/lib/test/ExampleSpec.m
xcbootstrap-0.0.2 templates/static-lib/lib/test/ExampleSpec.m
xcbootstrap-0.0.1 templates/static-lib/lib/test/ExampleSpec.m