Skip to content
Browse files

revise the notification spec to more clear

  • Loading branch information...
1 parent bd4b7ae commit 083f622d8c7f12286464f4ceaeabe7f2c365f83b @siuying siuying committed May 10, 2012
Showing with 3 additions and 6 deletions.
  1. +3 −6 spec/ns_notification_center_spec.rb
View
9 spec/ns_notification_center_spec.rb
@@ -24,12 +24,9 @@
end
it "remove observer" do
- notification_center.observe(@observer, SampleNotification) do
- notified = true
- end
-
lambda {
+ notification_center.observe(@observer, SampleNotification) {}
notification_center.unobserve(@observer)
- }.should.change { notification_center.observers.keys.size }
+ }.should.not.change { notification_center.observers.keys.size }
end
-end
+end

0 comments on commit 083f622

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