Skip to content

Commit

Permalink
Small update to previous pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
jdewind committed Mar 22, 2013
1 parent 21252ee commit 72a59fd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions Source/JSObjectionUtils.m
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,7 @@ static void InjectDependenciesIntoProperties(JSObjectionInjector *injector, Clas
@throw [NSException exceptionWithName:@"JSObjectionException"
reason:[NSString stringWithFormat:@"Cannot find an instance that is bound to the protocol '%@' to assign to the property '%@'", NSStringFromProtocol(desiredClassOrProtocol), propertyName]
userInfo:nil];
}

if (theObject == nil) {
} else if (theObject == nil) {
theObject = [NSNull null];
}

Expand Down
2 changes: 1 addition & 1 deletion Specs/Fixtures.m
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ @implementation FiveSpeedCar

@implementation SixSpeedCar
objection_register(SixSpeedCar)

@synthesize gearBox;
@end

@implementation CarFactory
Expand Down
2 changes: 1 addition & 1 deletion Specs/ModuleFixtures.m
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ @implementation BlockModule
- (void)configure
{
NSString *myEngine = @"My Engine";
Brakes *myBrakes = [[Brakes alloc] init];
Brakes *myBrakes = [[[Brakes alloc] init] autorelease];

[self bindBlock:^(JSObjectionInjector *context) {
if (_instrumentNilBlock) {
Expand Down
2 changes: 1 addition & 1 deletion Specs/ModuleUsageSpecs.m
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@

it(@"allows a returned nil value from bindBlock", ^{
// attempt to inject dependencies into Car via InjectDependenciesIntoProperties
// ensure that Car is successfully dependency injected and property brakes
// ensure that Car is successfully injected and property brakes
// returned from bindBlock is set as nil on Car if that was the intention
Car *car = [[JSObjection defaultInjector] getObject:[Car class]];
assertThat(car, notNilValue());
Expand Down

0 comments on commit 72a59fd

Please sign in to comment.