From 7ed5d6be29d998095b5f0eda489797491ec98077 Mon Sep 17 00:00:00 2001 From: Daniel Barden Date: Wed, 5 Mar 2014 17:37:33 +0100 Subject: [PATCH] Update Readme. Enclose notify's `code` on a block, to match the same syntax as the `raise` matcher --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2296ccf..ce96620 100644 --- a/README.md +++ b/README.md @@ -113,9 +113,9 @@ Expecta is framework-agnostic. It works well with OCUnit (SenTestingKit) and OCU > >`expect(x).to.respondTo(y);` passes if `x` responds to the selector `y`. > ->`expect( /* code */ ).to.notify(@"NotificationName");` passes if a given block of code generates an NSNotification named `NotificationName`. +>`expect(^{ /* code */ }).to.notify(@"NotificationName");` passes if a given block of code generates an NSNotification named `NotificationName`. > ->`expect( /* code */ ).to.notify(notification);` passes if a given block of code generates an NSNotification equal to the passed `notification`. +>`expect(^{ /* code */ }).to.notify(notification);` passes if a given block of code generates an NSNotification equal to the passed `notification`. > >`expect(x).to.beginWith(y);` passes if an instance of NSString, NSArray, or NSOrderedSet `x` begins with `y`. Also aliased by `startWith` >