diff options
Diffstat (limited to 'test/unit/test_handlers.rb')
-rw-r--r-- | test/unit/test_handlers.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/unit/test_handlers.rb b/test/unit/test_handlers.rb index 1d316e5..27c0c08 100644 --- a/test/unit/test_handlers.rb +++ b/test/unit/test_handlers.rb @@ -61,6 +61,16 @@ class HandlersTest < Test::Unit::TestCase @config.stop(false, true) File.delete "/tmp/testfile" end + + def test_registration_exception_is_not_lost + assert_raises(Mongrel::URIClassifier::RegistrationError) do + @config = Mongrel::Configurator.new do + listener do + uri "bogus", :handler => SimpleHandler.new + end + end + end + end def test_more_web_server res = hit([ "http://localhost:9998/test", |