Commits

Anonymous committed 947e327

More comments and tabs to spaces conversion

  • Participants
  • Parent commits faad668

Comments (0)

Files changed (2)

File WhereIsMyPhone-WithUnitTests/Classes/WhereIsMyPhoneAppDelegateTests.m

 
 - (void)testAppDelegate
 {
+    // Execute
     id appDelegate = [[UIApplication sharedApplication] delegate];
+    
+    // Verify
     STAssertNotNil(appDelegate, nil);
 }
 

File WhereIsMyPhone-WithUnitTests/Classes/WhereIsMyPhoneViewControllerTests.m

     id _mockLocationManager;
     id _mockLocationFormatter;
     id _mockApplication;
-	WhereIsMyPhoneViewController * _viewController;
+    WhereIsMyPhoneViewController * _viewController;
 }
 
 @end
     _mockLocationManager = [OCMockObject mockForClass:[CLLocationManager class]];
     _mockLocationFormatter = [OCMockObject mockForClass:[CoreLocationFormatter class]];
     _mockApplication = [OCMockObject mockForClass:[UIApplication class]];
-	_viewController = [[WhereIsMyPhoneViewController alloc]
-					   initWithLocationManager:_mockLocationManager
-					   locationFormatter:_mockLocationFormatter
-					   application:_mockApplication];
+    _viewController = [[WhereIsMyPhoneViewController alloc]
+                       initWithLocationManager:_mockLocationManager
+                       locationFormatter:_mockLocationFormatter
+                       application:_mockApplication];
 }
 
 - (void)tearDown
 {
-	// Verify
-	[_mockLocationManager verify];
-	[_mockLocationFormatter verify];
-	[_mockApplication verify];
-	
-	// Teardown
-	[_viewController release];
+    // Verify
+    [_mockLocationManager verify];
+    [_mockLocationFormatter verify];
+    [_mockApplication verify];
+    
+    // Teardown
+    [_viewController release];
 }
 
 #if APPLICATION_TESTS
 
 - (void)testLoadView
 {
-	[_viewController loadView];
+    // Execute
+    [_viewController loadView];
 
-	STAssertTrue([_viewController isViewLoaded], nil);
-	STAssertNotNil(_viewController.webView, nil);
-	STAssertNotNil(_viewController.locationLabel, nil);
-	STAssertNotNil(_viewController.accuracyLabel, nil);
-	STAssertNotNil(_viewController.openInBrowserButton, nil);
-	
-	NSArray *actions = [_viewController.openInBrowserButton
-		actionsForTarget:_viewController
-		forControlEvent:UIControlEventTouchUpInside];
-	
-	STAssertEqualObjects([actions objectAtIndex:0], @"openInDefaultBrowser:",
-		nil);
+    // Verify
+    STAssertTrue([_viewController isViewLoaded], nil);
+    STAssertNotNil(_viewController.webView, nil);
+    STAssertNotNil(_viewController.locationLabel, nil);
+    STAssertNotNil(_viewController.accuracyLabel, nil);
+    STAssertNotNil(_viewController.openInBrowserButton, nil);
+    
+    NSArray *actions = [_viewController.openInBrowserButton
+        actionsForTarget:_viewController
+        forControlEvent:UIControlEventTouchUpInside];
+    
+    STAssertEqualObjects([actions objectAtIndex:0], @"openInDefaultBrowser:",
+        nil);
 }
 
 #endif
 
 - (void)testViewDidLoadStartsLocationManager
 {
-	// Setup
+    // Setup
     [[_mockLocationManager expect] setDelegate:_mockLocationFormatter];
     [[_mockLocationManager expect] startUpdatingLocation];
-	
+    
     // Execute
     [_viewController viewDidLoad];
 }
 {
     // Setup
     [[_mockLocationManager expect] stopUpdatingLocation];
-	
+    
     // Execute
     [_viewController viewDidUnload];
 }
     
     // Execute
     [_viewController locationFormatter:_mockLocationFormatter
-			  didUpdateFormattedString:@"html string"
-						 locationLabel:@"location"
-						 accuracyLabel:@"accuracy"];
+              didUpdateFormattedString:@"html string"
+                         locationLabel:@"location"
+                         accuracyLabel:@"accuracy"];
     
     // Verify
     [mockWebView verify];