Permalink
Browse files

Small update to previous pull request

  • Loading branch information...
thestoics committed Mar 22, 2013
1 parent 21252ee commit 72a59fd298d27a6e8c7b5bee948aa2212db10d26
Showing with 4 additions and 6 deletions.
  1. +1 −3 Source/JSObjectionUtils.m
  2. +1 −1 Specs/Fixtures.m
  3. +1 −1 Specs/ModuleFixtures.m
  4. +1 −1 Specs/ModuleUsageSpecs.m
@@ -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];
}
View
@@ -43,7 +43,7 @@ @implementation FiveSpeedCar
@implementation SixSpeedCar
objection_register(SixSpeedCar)
-
+@synthesize gearBox;
@end
@implementation CarFactory
View
@@ -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) {
View
@@ -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());

0 comments on commit 72a59fd

Please sign in to comment.