зеркало из https://github.com/github/Rebel.git
Add another test.
This commit is contained in:
Родитель
1f86ed130b
Коммит
8cac3a951d
|
@ -32,7 +32,7 @@ it(@"Should not have a nil delegate", ^{
|
||||||
expect(animation.delegate).toNot.beNil();
|
expect(animation.delegate).toNot.beNil();
|
||||||
});
|
});
|
||||||
|
|
||||||
it(@"should should fire once animation is completed", ^{
|
it(@"Should fire once animation is completed", ^{
|
||||||
CALayer *layer = [CALayer layer];
|
CALayer *layer = [CALayer layer];
|
||||||
CABasicAnimation *sampleAnimation = [CABasicAnimation animationWithKeyPath:@"opacity"];
|
CABasicAnimation *sampleAnimation = [CABasicAnimation animationWithKeyPath:@"opacity"];
|
||||||
__block BOOL fired = NO;
|
__block BOOL fired = NO;
|
||||||
|
@ -46,4 +46,10 @@ it(@"should should fire once animation is completed", ^{
|
||||||
expect(fired).will.beTruthy();
|
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
|
SpecEnd
|
||||||
|
|
Загрузка…
Ссылка в новой задаче