1. Dave Dribin
  2. WhereIsMyX

Commits

Dave Dribin  committed faad668

Convert tabs to spaces

  • Participants
  • Parent commits 2e4e8e8
  • Branches default

Comments (0)

Files changed (3)

File WhereIsMyPhone-WithUnitTests/Classes/WhereIsMyPhoneAppDelegate.m

View file
 
 - (id)init
 {
-	self = [super init];
-	if (self == nil)
-		return nil;
-	
-	viewController = [[WhereIsMyPhoneViewController alloc] init];
-	
-	return self;
+    self = [super init];
+    if (self == nil)
+        return nil;
+    
+    viewController = [[WhereIsMyPhoneViewController alloc] init];
+    
+    return self;
 }
 
 - (void)dealloc

File WhereIsMyPhone-WithUnitTests/Classes/WhereIsMyPhoneAppDelegateTests.m

View file
 //
-//	WhereIsMyPhoneAppDelegateTests.m
-//	WhereIsMyMac
+//  WhereIsMyPhoneAppDelegateTests.m
+//  WhereIsMyMac
 //
-//	Created by Matt Gallagher on 2009/12/19.
-//	Copyright 2009 Matt Gallagher. All rights reserved.
+//  Created by Matt Gallagher on 2009/12/19.
+//  Copyright 2009 Matt Gallagher. All rights reserved.
 //
-//	Permission is given to use this source code file, free of charge, in any
-//	project, commercial or otherwise, entirely at your risk, with the condition
-//	that any redistribution (in part or whole) of source code must retain
-//	this copyright and permission notice. Attribution in compiled projects is
-//	appreciated but not required.
+//  Permission is given to use this source code file, free of charge, in any
+//  project, commercial or otherwise, entirely at your risk, with the condition
+//  that any redistribution (in part or whole) of source code must retain
+//  this copyright and permission notice. Attribution in compiled projects is
+//  appreciated but not required.
 //
 
 #import <SenTestingKit/SenTestingKit.h>
 
 @interface WhereIsMyPhoneAppDelegateTests : SenTestCase 
 {
-	id _mockViewController;
-	WhereIsMyPhoneAppDelegate * _appDelegate;
+    id _mockViewController;
+    WhereIsMyPhoneAppDelegate * _appDelegate;
 }
 
 @end
 
 - (void)setUp
 {
-	_mockViewController = [OCMockObject mockForClass:[WhereIsMyPhoneViewController class]];
-	_appDelegate = [[[WhereIsMyPhoneAppDelegate alloc] init] autorelease];
-	_appDelegate.viewController = _mockViewController;
+    _mockViewController = [OCMockObject mockForClass:[WhereIsMyPhoneViewController class]];
+    _appDelegate = [[[WhereIsMyPhoneAppDelegate alloc] init] autorelease];
+    _appDelegate.viewController = _mockViewController;
 }
 
 - (void)tearDown
 {
-	[_mockViewController verify];
+    [_mockViewController verify];
 }
 
 #ifdef APPLICATION_TESTS
 
 - (void)testAppDelegate
 {
-	id appDelegate = [[UIApplication sharedApplication] delegate];
-	STAssertNotNil(appDelegate, nil);
+    id appDelegate = [[UIApplication sharedApplication] delegate];
+    STAssertNotNil(appDelegate, nil);
 }
 
 #endif
 
 - (void)testApplicationDidFinishLaunchingShowsWindow
 {
-	// Setup
-	id mockView = [OCMockObject mockForClass:[UIView class]];
-	[[[_mockViewController stub] andReturn:mockView] view];
-	id mockWindow = [OCMockObject mockForClass:[UIWindow class]];
-	_appDelegate.window = mockWindow;
+    // Setup
+    id mockView = [OCMockObject mockForClass:[UIView class]];
+    [[[_mockViewController stub] andReturn:mockView] view];
+    id mockWindow = [OCMockObject mockForClass:[UIWindow class]];
+    _appDelegate.window = mockWindow;
 
-	[[mockView expect] setFrame:CGRectMake(0, 20, 320, 460)];
-	[[mockWindow expect] addSubview:mockView];
-	[[mockWindow expect] makeKeyAndVisible];
-	
-	// Execute
-	[_appDelegate applicationDidFinishLaunching:nil];
+    [[mockView expect] setFrame:CGRectMake(0, 20, 320, 460)];
+    [[mockWindow expect] addSubview:mockView];
+    [[mockWindow expect] makeKeyAndVisible];
+    
+    // Execute
+    [_appDelegate applicationDidFinishLaunching:nil];
 
-	// Verify
-	[mockView verify];
-	[mockWindow verify];
+    // Verify
+    [mockView verify];
+    [mockWindow verify];
 }
 
 - (void)testApplicationWillTerminateNilsOutOutlets
 {
-	// Setup
-	id mockWindow = [OCMockObject mockForClass:[UIWindow class]];
-	_appDelegate.window = mockWindow;
-	
-	// Execute
-	[_appDelegate applicationWillTerminate:nil];
-	
-	// Verify
-	STAssertNil(_appDelegate.viewController, nil);
-	STAssertNil(_appDelegate.window, nil);
+    // Setup
+    id mockWindow = [OCMockObject mockForClass:[UIWindow class]];
+    _appDelegate.window = mockWindow;
+    
+    // Execute
+    [_appDelegate applicationWillTerminate:nil];
+    
+    // Verify
+    STAssertNil(_appDelegate.viewController, nil);
+    STAssertNil(_appDelegate.window, nil);
 }
 
 @end

File WhereIsMyPhone-WithUnitTests/WhereIsMyPhone.xcodeproj/project.pbxproj

View file
 			);
 			path = Classes;
 			sourceTree = "<group>";
-			usesTabs = 1;
+			usesTabs = 0;
 		};
 		19C28FACFE9D520D11CA2CBB /* Products */ = {
 			isa = PBXGroup;
 			);
 			name = Tests;
 			sourceTree = "<group>";
-			usesTabs = 1;
+			usesTabs = 0;
 		};
 /* End PBXGroup section */