Skip to content
Browse files

Made specs of ExampleAsyncSpec passing again

  • Loading branch information...
1 parent fcc2b2d commit b7f127a255627711dc76003aaade82dcf6d239f2 @MattesGroeger MattesGroeger committed
Showing with 4 additions and 4 deletions.
  1. +4 −4 Examples/ExampleAsyncSpec.m
View
8 Examples/ExampleAsyncSpec.m
@@ -25,7 +25,7 @@
});
// this will block until the matcher is satisfied or it times out (default: 1s)
- [[theObject(&fetchedData) shouldEventually] equal:@"expected response data"];
+ [[expectFutureValue(fetchedData) shouldEventually] equal:@"expected response data"];
});
it(@"should verify asynchronous expectations on a variable that starts as nil that succeed with an explicit time", ^{
@@ -36,7 +36,7 @@
});
// this will block until the matcher is satisfied or it times out (default: 1s)
- [[theObject(&fetchedData) shouldEventuallyBeforeTimingOutAfter(2.0)] equal:@"expected response data"];
+ [[expectFutureValue(fetchedData) shouldEventuallyBeforeTimingOutAfter(2.0)] equal:@"expected response data"];
});
it(@"should verify asynchronous expectations on the return value of a block", ^{
@@ -77,7 +77,7 @@
});
// this will block until the matcher is satisfied or it times out (default: 1s)
- [[theObject(&fetchedData) shouldEventually] beNonNil];
+ [[expectFutureValue(fetchedData) shouldEventually] beNonNil];
});
it(@"should verify asynchronous expectations on a variable that starts as non-nil and becomes nil", ^{
@@ -88,7 +88,7 @@
});
// this will block until the matcher is satisfied or it times out (default: 1s)
- [[theObject(&fetchedData) shouldEventually] beNil];
+ [[expectFutureValue(fetchedData) shouldEventually] beNil];
});
});

0 comments on commit b7f127a

Please sign in to comment.
Something went wrong with that request. Please try again.