tracks/vendor/plugins/selenium-on-rails/init.rb
Reinier Balt 9b504b3e47 Update selenium on rails using 'official' git repo
git://github.com/paytonrules/selenium-on-rails.git
2008-12-02 10:05:41 +01:00

15 lines
431 B
Ruby

require 'selenium_on_rails_config'
envs = SeleniumOnRailsConfig.new.get :environments
if envs.include? RAILS_ENV
#initialize the plugin
$LOAD_PATH << File.dirname(__FILE__) + "/lib/controllers"
require 'selenium_controller'
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
end