Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

A bit more logging as a sanity check

  • Loading branch information...
commit 4c453b227c531dbb335625d324c336fabbf04ec9 1 parent fb4d400
@lukeredpath lukeredpath authored
Showing with 7 additions and 6 deletions.
  1. +7 −6 Examples/KiwiHooksSpec.m
View
13 Examples/KiwiHooksSpec.m
@@ -83,6 +83,10 @@
describe(@"after hooks behaviour", ^{
__block NSInteger calls = 0;
+ afterAll(^{
+ NSLog(@"FINAL AFTER ALL. Can't test this as it's the last thing to run, but verify with log output");
+ });
+
afterEach(^{
calls++;
});
@@ -97,6 +101,7 @@
context(@"with nested contexts", ^{
afterAll(^{
+ NSLog(@"[with nested contexts] afterAll");
calls++;
});
@@ -114,6 +119,7 @@
context(@"and another", ^{
afterAll(^{
+ NSLog(@"[with nested contexts and another] afterAll");
calls++;
});
@@ -127,8 +133,7 @@
it(@"will call inner afterEach and each outer afterEach and the inner afterAll after this spec", ^{
[[theValue(calls) should] equal:theValue(9)];
- });
-
+ });
});
it(@"will call this after the nested context specs above, reflecting the result of its afterAll, and this context's afterAll after this spec", ^{
@@ -139,10 +144,6 @@
it(@"will call this after both nested context specs above", ^{
[[theValue(calls) should] equal:theValue(16)];
});
-
- afterAll(^{
- NSLog(@"Can't test this as it's the last thing to run, but verify with log output");
- });
});
SPEC_END

0 comments on commit 4c453b2

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