spec/event_spec.rb in inferno-0.1.0 vs spec/event_spec.rb in inferno-0.1.1
- old
+ new
@@ -16,9 +16,10 @@
describe Inferno::Event do
it "should allow add actions and run it in proper context" do
dummy = DummyContextObject.new
notifications = Inferno::Event.new
+
notifications.on(:test, dummy) { @test_var = 2 }
notifications.count(:test).should eq(1)
notifications.trigger(:test)
dummy.test_var.should eq(2)
\ No newline at end of file