diff --git a/RebelTests/CAAnimation+RBLBlockAdditionsSpec.m b/RebelTests/CAAnimation+RBLBlockAdditionsSpec.m index efca044..c7dc3ae 100644 --- a/RebelTests/CAAnimation+RBLBlockAdditionsSpec.m +++ b/RebelTests/CAAnimation+RBLBlockAdditionsSpec.m @@ -32,7 +32,7 @@ it(@"Should not have a nil delegate", ^{ expect(animation.delegate).toNot.beNil(); }); -it(@"should should fire once animation is completed", ^{ +it(@"Should fire once animation is completed", ^{ CALayer *layer = [CALayer layer]; CABasicAnimation *sampleAnimation = [CABasicAnimation animationWithKeyPath:@"opacity"]; __block BOOL fired = NO; @@ -46,4 +46,10 @@ it(@"should should fire once animation is completed", ^{ expect(fired).will.beTruthy(); }); +it(@"Should return nil if no completion block has been set", ^{ + CAAnimation *animation = [CAAnimation animation]; + expect(animation.rbl_completionBlock).to.beNil(); +}); + + SpecEnd