Skip to content

Instantly share code, notes, and snippets.

@seven1m
Created October 22, 2010 01:03
Show Gist options
  • Save seven1m/639722 to your computer and use it in GitHub Desktop.
Save seven1m/639722 to your computer and use it in GitHub Desktop.
# patch for Webrat::Selenium support on Rails 3
# mongrel_rails won't run a Rails 3 app
module Webrat
module Selenium
module ApplicationServers
class Rails < Webrat::Selenium::ApplicationServers::Base
def start_command
"cd #{::Rails.root} && rails server -d --port=#{Webrat.configuration.application_port} --environment=#{Webrat.configuration.application_environment} --pid #{pid_file}"
end
def stop_command
"kill -HUP `cat #{pid_file}`"
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment