Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Small update to previous pull request

  • Loading branch information...
commit 72a59fd298d27a6e8c7b5bee948aa2212db10d26 1 parent 21252ee
@dewind dewind authored
View
4 Source/JSObjectionUtils.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
2  Specs/Fixtures.m
@@ -43,7 +43,7 @@ @implementation FiveSpeedCar
@implementation SixSpeedCar
objection_register(SixSpeedCar)
-
+@synthesize gearBox;
@end
@implementation CarFactory
View
2  Specs/ModuleFixtures.m
@@ -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
2  Specs/ModuleUsageSpecs.m
@@ -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());
Please sign in to comment.
Something went wrong with that request. Please try again.