Skip to content

Commit

Permalink
Update utils_test
Browse files Browse the repository at this point in the history
  • Loading branch information
zankich committed Jun 11, 2014
1 parent 2a24cda commit 2a2a435
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@ var _ = Describe("Utils", func() {
e := &Event{Chan: make(chan interface{}, 1)}
Publish(e, 1)
Publish(e, 2)
Publish(e, 3)
Publish(e, 4)
i := <-e.Chan
Expect(i.(int)).To(Equal(1))
})
It("should execution function on event", func() {
It("should execute function on event", func() {
var i int
e := NewEvent()
On(e, func(data interface{}) {
Expand Down

0 comments on commit 2a2a435

Please sign in to comment.