-
Notifications
You must be signed in to change notification settings - Fork 155
Open
Description
Hi, I am just trying to test if a notification is posted...
expect(^{
[[NSNotificationCenter defaultCenter] postNotificationName:@"notificationName" object:nil];
}).to.notify(@"notificationName");
This tests fails with the expected value is nil/null
, am I doing something wrong?
I debugged a little and here:
EXPMatcherImplementationBegin(postNotification, (id expected))
expected is always nil, so the block is never executed.
Furthermore it would be nice to check this tweet from AshFurrow talking about object:nil when posting the notification.
Metadata
Metadata
Assignees
Labels
No labels