Skip to content

Commit

Permalink
Add :external mode to allow testing against already running servers
Browse files Browse the repository at this point in the history
(possibly non-ruby). Add require to selenium_rc_server.rb needed when
run standalone.
  • Loading branch information
ijcd committed May 20, 2009
1 parent fd431f2 commit 8c3bdce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/webrat/selenium/application_server.rb
Expand Up @@ -16,6 +16,9 @@ def self.boot
when :rails
require "webrat/selenium/rails_application_server"
RailsApplicationServer.new.boot
when :external
# noop -- the server should already be running
puts "Using external application server... make sure it is running."
else
raise WebratError.new(<<-STR)
Unknown Webrat application_framework: #{Webrat.configuration.application_framework.inspect}
Expand Down
3 changes: 2 additions & 1 deletion lib/webrat/selenium/selenium_rc_server.rb
Expand Up @@ -2,7 +2,8 @@ module Webrat
module Selenium

class SeleniumRCServer


require 'webrat/selenium/silence_stream'
include Webrat::Selenium::SilenceStream

def self.boot
Expand Down

0 comments on commit 8c3bdce

Please sign in to comment.