Sha256: b71e2ca45280a6b77df76930c4f18b6d55332c9a086f1b64c954dadc2e9cbbfd

Contents?: true

Size: 758 Bytes

Versions: 4

Compression:

Stored size: 758 Bytes

Contents

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

SPEC_BEGIN(ExampleSpec)

describe(@"an object", ^{
    
    __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/simple/app/test/ExampleSpec.m
xcbootstrap-0.0.3 templates/simple/app/test/ExampleSpec.m
xcbootstrap-0.0.2 templates/simple/app/test/ExampleSpec.m
xcbootstrap-0.0.1 templates/simple/app/test/ExampleSpec.m