# File test/test_Error.rb, line 176 def test_doc_defined? @Error.document_error = { :document => 'Page', :arguments => [ "Hello world.\n", 'text/plain' ], :mount_path => '/error', :mount_mask => nil, :exception => RuntimeError.new('test') } assert(@Error.doc_defined?) @Error.document_error = { :document => 'Foo', :arguments => [], :mount_path => '/', :mount_mask => nil, :exception => RuntimeError.new('nothing') } assert(! @Error.doc_defined?) end