Fixed unit tests.

This commit is contained in:
Ash Furrow
2013-12-28 09:16:41 -05:00
parent 0d95a1de36
commit ced77bc04d

View File

@@ -40,10 +40,10 @@ describe(@"FRPFullSizePhotomodel", ^{
FRPFullSizePhotoViewModel *viewModel = [[FRPFullSizePhotoViewModel alloc] initWithPhotoArray:model initialPhotoIndex:initialPhotoIndex];
id subzeroModel = [viewModel photoModelAtIndex:-1];
expect(subzeroModel).to.beNil;
expect(subzeroModel).to.beNil();
id aboveBoundsModel = [viewModel photoModelAtIndex:model.count];
expect(aboveBoundsModel).to.beNil;
expect(aboveBoundsModel).to.beNil();
});
it (@"should return the correct model for photoModelAtIndex:", ^{