Skip to content

Commit

Permalink
Improve EM.error_handler test
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 committed Mar 8, 2009
1 parent 9a7a7df commit c5f6f47
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/test_error_handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@ def test_error_handler
EM.stop
}

EM.run{
EM.add_timer(0){
raise 'test'
assert_nothing_raised do
EM.run{
EM.add_timer(0){
raise 'test'
}
}
}
end

assert_equal error.class, RuntimeError
assert_equal error.message, 'test'
end

Expand Down

0 comments on commit c5f6f47

Please sign in to comment.