Class TestRucy::TestControl
In: test/test_control.rb
Parent: RUNIT::TestCase

Methods

BasicAuthFilter   RemoteAddressAllowAccessFilter   add_access_log   add_logger   attach   bind_address=   build_control   close   close_hook   crypt   daemon   do_not_reverse_lookup=   document   factory   forkable?   keep_alive=   load   loader_new   logging_access   max_requests=   messenger_factory=   messenger_queue_length=   messenger_threads=   messengers=   messg   mod_folder_new   mount   port   port=   privilege   privilege=   properties_new   properties_privilge=   queue_length=   restart   restart_count   restart_signal=   restart_time   scan   server_setup   set_alias   set_virtual_alias   setup   simple_loader_load_hook   start_time   test_ControlPanel_document   test_ControlPanel_with_BasicAuth   test_ControlPanel_with_BasicAuth_and_LocalhostOnly   test_access_log   test_access_log_error   test_access_log_with_logging   test_admin_params   test_alias_setup   test_alias_setup_error   test_aliases   test_default_server_settings   test_do_not_reverse_flag_false   test_do_not_reverse_flag_true   test_document_setup   test_documents   test_filter_setup   test_filters   test_load_errors   test_logging_errors   test_logging_params   test_logging_setup   test_logging_setup_as_daemon   test_modified_server_settings   test_server_close   test_server_params   test_server_restart   test_set_admin_params   timeout=   virtual_attach   virtual_mount  

Included Modules

PseudoProperties

Classes and Modules

Class TestRucy::TestControl::PseudoSimpleLoader

Public Instance methods

for BasicSocket class

  def new
    raise 'exception on creating a document.'
  end
  end
  @factory.add_document(error)
  @store['documents'] = [
  { 'document' => 'TestError',
    'arguments' => [],
    'mount_path' => '/error',
    'mount_mask' => nil,
    'virtual_host' => 'foo'
  }
  ]
  build_control
  server_setup
  assert_equal(1, @mount_call)
  assert_equal(0, @virtual_mount_call)
  assert_nil(@document.find('/error'))
  assert_equal(1, @control.doc_errors.length)
  assert_equal('TestError', @control.doc_errors[0][:document])
  assert_equal([], @control.doc_errors[0][:arguments])
  assert_equal('/error', @control.doc_errors[0][:mount_path])
  assert_nil(@control.doc_errors[0][:mount_mask])
  assert_equal('foo', @control.doc_errors[0][:virtual_host])
  assert_instance_of(RuntimeError, @control.doc_errors[0][:exception])
  assert_equal('exception on creating a document.', @control.doc_errors[0][:exception].message)

end

Private Instance methods

[Validate]