mattetti/BubbleWrap — pull request #34 by siuying (2012-05-30 04:43:33+00:00)
Title: Rewrite the Notification Center helper

I believe I was doing it wrong in previous notification_center helpers.

I have rewrite it using addObserverForName:object:queue:usingBlock:

The interface is changed, but it should be more align to the way NSNotificationCenter work.

```ruby
@observer = notification_center.observe(SampleNotification) do |note|
note.should.is_a NSNotification
note.object.class.should == Time
note.userInfo.should.not.be.nil
note.userInfo[:status].should == "ok"
end

notification_center.post SampleNotification, Time.now, {:status => "ok"}

notification_center.unobserve(@observer)
```