Skip to content
Browse files

Fix broken unit tests (close #74)

  • Loading branch information...
1 parent 7f66cc7 commit f9a0813abf4b3091907f22fa91f2861c156f58a1 @lukeredpath lukeredpath committed
Showing with 2 additions and 16 deletions.
  1. +2 −2 Tests/KWContextNodeTest.m
  2. +0 −14 Tests/KWExampleGroupBuilderTest.m
View
4 Tests/KWContextNodeTest.m
@@ -17,7 +17,7 @@ @interface KWContextNodeTest : SenTestCase
@implementation KWContextNodeTest
- (void)testItShouldAllowOnlyOneBeforeEachBlock {
- KWContextNode *node = [KWContextNode contextNodeWithCallSite:nil description:nil];
+ KWContextNode *node = [KWContextNode contextNodeWithCallSite:nil parentContext:nil description:nil];
__block NSUInteger tag = 0;
KWVoidBlock block = ^{ ++tag; };
[node setBeforeEachNode:[KWBeforeEachNode beforeEachNodeWithCallSite:nil block:block]];
@@ -25,7 +25,7 @@ - (void)testItShouldAllowOnlyOneBeforeEachBlock {
}
- (void)testItShouldAllowOnlyOneAfterEachBlock {
- KWContextNode *node = [KWContextNode contextNodeWithCallSite:nil description:nil];
+ KWContextNode *node = [KWContextNode contextNodeWithCallSite:nil parentContext:nil #description:nil];
__block NSUInteger tag = 0;
KWVoidBlock block = ^{ ++tag; };
[node setAfterEachNode:[KWAfterEachNode afterEachNodeWithCallSite:nil block:block]];
View
14 Tests/KWExampleGroupBuilderTest.m
@@ -22,20 +22,6 @@ - (void)testItShouldBuildExampleGroups {
STAssertFalse([[KWExampleGroupBuilder sharedExampleGroupBuilder] isBuildingExampleGroup], @"example group builder must be clean for other tests to run cleanly");
}
-- (void)testItShouldRaiseIfBuildingIsNested {
- [[KWExampleGroupBuilder sharedExampleGroupBuilder] buildExampleGroups:^{
- STAssertThrows([[KWExampleGroupBuilder sharedExampleGroupBuilder] buildExampleGroups:^{}], @"expected raised exception");
- }];
- STAssertFalse([[KWExampleGroupBuilder sharedExampleGroupBuilder] isBuildingExampleGroup], @"example group builder must be clean for other tests to run cleanly");
-}
-
-- (void)testItShouldRaiseWhenEndingWithPushContextUnmatched {
- STAssertThrows([[KWExampleGroupBuilder sharedExampleGroupBuilder] buildExampleGroups:^{
- [[KWExampleGroupBuilder sharedExampleGroupBuilder] pushContextNodeWithCallSite:nil description:@"Cruiser"];
- }], @"expected raised exception");
- STAssertFalse([[KWExampleGroupBuilder sharedExampleGroupBuilder] isBuildingExampleGroup], @"example group builder must be clean for other tests to run cleanly");
-}
-
- (void)testItShouldRaiseWhenPopContextUnmatched {
[[KWExampleGroupBuilder sharedExampleGroupBuilder] buildExampleGroups:^{
STAssertThrows([[KWExampleGroupBuilder sharedExampleGroupBuilder] popContextNode], @"expected raised exception");

0 comments on commit f9a0813

Please sign in to comment.
Something went wrong with that request. Please try again.