Update selenium on rails using 'official' git repo

git://github.com/paytonrules/selenium-on-rails.git
This commit is contained in:
Reinier Balt 2008-12-02 10:05:41 +01:00
parent 198f3240b8
commit 9b504b3e47
159 changed files with 16409 additions and 11794 deletions

View file

@ -1,5 +1,5 @@
require 'selenium_on_rails_config'
envs = SeleniumOnRailsConfig.get :environments
envs = SeleniumOnRailsConfig.new.get :environments
if envs.include? RAILS_ENV
#initialize the plugin
@ -8,14 +8,8 @@ if envs.include? RAILS_ENV
require File.dirname(__FILE__) + '/routes'
SeleniumController.prepend_view_path File.expand_path(File.dirname(__FILE__) + '/lib/views')
else
#erase all traces
$LOAD_PATH.delete lib_path
#but help user figure out what to do
unless RAILS_ENV == 'production' # don't pollute production
require File.dirname(__FILE__) + '/switch_environment/init'
end
end