aboutsummaryrefslogtreecommitdiff
path: root/UnitTesting
diff options
context:
space:
mode:
Diffstat (limited to 'UnitTesting')
-rw-r--r--UnitTesting/GTMIPhoneUnitTestDelegate.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/UnitTesting/GTMIPhoneUnitTestDelegate.m b/UnitTesting/GTMIPhoneUnitTestDelegate.m
index e28d3ea..03ded2f 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:(NSNotification *)notification {
+- (void)applicationDidFinishLaunching:(UIApplication *)application {
// 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:[notification object]
+ withObject:application
afterDelay:0];
}