Skip to content

Commit

Permalink
Fixed a bad merge
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeredpath committed Jan 23, 2012
1 parent 28fc8f8 commit 7f66cc7
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions Kiwi/KWExampleGroupBuilder.m
Expand Up @@ -103,16 +103,6 @@ - (KWExampleSuite *)buildExampleGroups:(void (^)(void))buildingBlock

[self.contextNodeStack addObject:rootNode];
buildingBlock();
if ([self.contextNodeStack count] > 1) {
NSDictionary * context = [[NSDictionary alloc] initWithObjectsAndKeys:[self.contextNodeStack copy], @"contextNodeStack",
[self.exampleGroups copy], @"exampleGroups", nil];
[self.contextNodeStack removeAllObjects];
self.exampleGroups = nil;
NSException *exception = [[NSException alloc] initWithName:@"KWExampleGroupBuilderException"
reason:@"cannot end example group with open contexts"
userInfo:context];
[exception raise];
}
[self.contextNodeStack removeAllObjects];

return self.exampleSuite;
Expand Down

0 comments on commit 7f66cc7

Please sign in to comment.