aboutsummaryrefslogtreecommitdiff
path: root/UnitTesting/GTMIPhoneUnitTestDelegate.m
diff options
context:
space:
mode:
authorGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2014-03-26 12:00:19 +0000
committerGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2014-03-26 12:00:19 +0000
commit32f3eea1f4fa9b684de868d8f03a32cbec234b22 (patch)
tree97ada7d0ee639eb53dad460934446fac9ea903fa /UnitTesting/GTMIPhoneUnitTestDelegate.m
parentdbc4236041388dc2745809ac3a75283ec2bf13eb (diff)
Pass correct UIApplication object to method runTestsAndExit:
DELTA=2 (0 added, 0 deleted, 2 changed)
Diffstat (limited to 'UnitTesting/GTMIPhoneUnitTestDelegate.m')
-rw-r--r--UnitTesting/GTMIPhoneUnitTestDelegate.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/UnitTesting/GTMIPhoneUnitTestDelegate.m b/UnitTesting/GTMIPhoneUnitTestDelegate.m
index 03ded2f..e28d3ea 100644
--- a/UnitTesting/GTMIPhoneUnitTestDelegate.m
+++ b/UnitTesting/GTMIPhoneUnitTestDelegate.m
@@ -71,7 +71,7 @@
// Run through all the registered classes and run test methods on any
// that are subclasses of SenTestCase. Terminate the application upon
// test completion.
-- (void)applicationDidFinishLaunching:(UIApplication *)application {
+- (void)applicationDidFinishLaunching:(NSNotification *)notification {
// We could get called twice once from our notification registration, and
// once if we actually still are the delegate of the application after
@@ -87,7 +87,7 @@
// To permit UI-based tests, run the tests and exit app in a delayed selector
// call. This ensures tests are run outside of applicationDidFinishLaunching:.
[self performSelector:@selector(runTestsAndExit:)
- withObject:application
+ withObject:[notification object]
afterDelay:0];
}