mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-17 15:50:13 +01:00
Update selenium on rails using 'official' git repo
git://github.com/paytonrules/selenium-on-rails.git
This commit is contained in:
parent
198f3240b8
commit
9b504b3e47
159 changed files with 16409 additions and 11794 deletions
8
vendor/plugins/selenium-on-rails/init.rb
vendored
8
vendor/plugins/selenium-on-rails/init.rb
vendored
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue