def configure_webrat(webrat_configuration_object)
      # NOTE: application_port_for_selenium requires version > 0.7.3 of webrat
      # Prior versions only have application_address, and don't have a concept of
      # starting a rails server at one port, and hitting it at selenium via another
      {
        'selenium_server_address' => :selenium_server_address,
        'selenium_server_port'    => :selenium_server_port,
        'selenium_browser_key'    => :selenium_browser_key,
        'application_address'     => :application_address,
        'application_port_for_selenium' => start_tunnel? ? :tunnel_to_localhost_port : :application_port,
        'application_port'        => :application_port
      }.each do |webrat_configuration_method, our_accessor|
        webrat_configuration_object.send("#{webrat_configuration_method}=", self.send(our_accessor).to_s)
      end
    end
def configure_webrat(webrat_configuration_object)
      # NOTE: application_port_for_selenium requires version > 0.7.3 of webrat
      # Prior versions only have application_address, and don't have a concept of
      # starting a rails server at one port, and hitting it at selenium via another
      {
        'selenium_server_address' => :selenium_server_address,
        'selenium_server_port'    => :selenium_server_port,
        'selenium_browser_key'    => :selenium_browser_key,
        'application_address'     => :application_address,
        'application_port_for_selenium' => start_tunnel? ? :tunnel_to_localhost_port : :application_port,
        'application_port'        => :application_port
      }.each do |webrat_configuration_method, our_accessor|
        webrat_configuration_object.send("#{webrat_configuration_method}=", self.send(our_accessor).to_s)
      end
    end
Takes a Webrat::Configuration object and configures it by calling methods on it