Skip to content

Commit

Permalink
Fixes compilation issues in latest toolchain
Browse files Browse the repository at this point in the history
Conform to nonnull semantics in a couple places
  • Loading branch information
akitchen committed Jun 13, 2015
1 parent fd57e04 commit 20fd99b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Spec/CDRSpecFailureSpec.mm
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
context(@"when file name and line number are specified in exception's userInfo", ^{
beforeEach(^{
NSDictionary *userInfo = [NSDictionary dictionaryWithObjectsAndKeys:@"File.m", @"fileName", [NSNumber numberWithInt:123], @"lineNumber", nil];
NSException *exception = [NSException exceptionWithName:nil reason:@"exception reason" userInfo:userInfo];
NSException *exception = [NSException exceptionWithName:@"boo" reason:@"exception reason" userInfo:userInfo];
failure = [CDRSpecFailure specFailureWithRaisedObject:exception];
});

Expand All @@ -112,7 +112,7 @@

context(@"when file name and line number are not specified in userInfo of exception", ^{
beforeEach(^{
NSException *exception = [NSException exceptionWithName:nil reason:@"exception reason" userInfo:nil];
NSException *exception = [NSException exceptionWithName:@"boo" reason:@"exception reason" userInfo:nil];
failure = [CDRSpecFailure specFailureWithRaisedObject:exception];
});

Expand Down
1 change: 0 additions & 1 deletion Spec/Doubles/CedarDoubleARCSharedExamples.mm
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ myDouble stub_method("methodWithBlock:").and_do(^(NSInvocation *invocation) {
});

while (!called) {
[[NSRunLoop currentRunLoop] addTimer:[NSTimer timerWithTimeInterval:0.1 invocation:nil repeats:NO] forMode:NSDefaultRunLoopMode];
NSDate *futureDate = [NSDate dateWithTimeIntervalSinceNow:0.1];
[[NSRunLoop currentRunLoop] runUntilDate:futureDate];
}
Expand Down

0 comments on commit 20fd99b

Please sign in to comment.