petejkim/specta — Issue #4: shared examples
Author: petejkim
Created: 2012-01-16 20:32:27+00:00
State: open

```objective-c

sharedExamplesFor(@"foo", ^(NSDictionary *dict) {
describe(@"bar", ^{
it(@"does something.", ^{});
});
});

describe(@"baz", ^{
itShouldBehaveLike(@"foo");
});

describe(@"qux", ^{
NSDictionary *dict = [NSDictionary ...];

itShouldBehaveLike(@"foo", dict);
});

// sharedExamplesFor <=> sharedExamples
// itShouldBehaveLike <=> itBehavesLike
```