Skip to content

Commit a439408

Browse files
committed
Cleaned up some small issues.
1 parent 98c7b09 commit a439408

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Source/OCMockTests/OCMockObjectPartialMocksTests.m

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,12 @@ @implementation OCTestManagedObject
208208

209209
@end
210210

211+
212+
211213
@implementation OCMockObjectPartialMocksTests
212214

215+
#pragma mark Test for description
216+
213217
- (void)testDescription
214218
{
215219
TestClassWithSimpleMethod *object = [[TestClassWithSimpleMethod alloc] init];
@@ -318,7 +322,7 @@ - (void)testRefusesToCreateTwoPartialMocksForTheSameObject
318322

319323
- (void)testRefusesToCreatePartialMockForTollFreeBridgedClasses
320324
{
321-
id object = (id)CFBridgingRelease(CFStringCreateWithCString(kCFAllocatorDefault, "foo", kCFStringEncodingASCII));
325+
id object = CFBridgingRelease(CFStringCreateWithCString(kCFAllocatorDefault, "foo", kCFStringEncodingASCII));
322326
XCTAssertThrowsSpecificNamed([OCMockObject partialMockForObject:object],
323327
NSException,
324328
NSInvalidArgumentException,
@@ -507,15 +511,12 @@ - (void)testPartialMockOnKVOObserved
507511
KVO notifications stop functioning. If we did not do this, the presence of the mock
508512
subclass would cause KVO to crash, at least without further tinkering. */
509513
[realObject setMethodInt:45];
510-
// STAssertEquals(numKVOCallbacks, 1, @"did not get subclass KVO notification");
511514
XCTAssertEqual(numKVOCallbacks, 0, @"got subclass KVO notification");
512515
[mock setMethodInt:47];
513-
// STAssertEquals(numKVOCallbacks, 2, @"did not get mock KVO notification");
514516
XCTAssertEqual(numKVOCallbacks, 0, @"got mock KVO notification");
515517

516518
[mock stopMocking];
517519
XCTAssertEqualObjects([realObject class], origClass, @"Classes different after stopMocking");
518-
// STAssertEqualObjects(object_getClass(realObject), kvoClass, @"KVO class different after stopMocking");
519520
XCTAssertEqualObjects(object_getClass(realObject), origClass, @"class different after stopMocking");
520521

521522
[realObject removeObserver:self forKeyPath:@"methodInt" context:MyContext];

0 commit comments

Comments
 (0)