This commit is contained in:
Jonathan Willing 2013-01-09 12:03:37 -06:00
Родитель 1f86ed130b
Коммит 8cac3a951d
1 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -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