mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-18 16:20:12 +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
16
vendor/plugins/selenium-on-rails/lib/controllers/switch_environment_controller.rb
vendored
Normal file
16
vendor/plugins/selenium-on-rails/lib/controllers/switch_environment_controller.rb
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
class SwitchEnvironmentController < ActionController::Base
|
||||
def index
|
||||
readme_path = File.expand_path File.join(File.dirname(__FILE__), '..', 'README')
|
||||
render :status => 500, :locals => {:readme_path => readme_path }, :inline => <<END
|
||||
<p>
|
||||
Selenium on Rails is only activated for <%= SeleniumOnRailsConfig.new.get(:environments).join ', ' %>
|
||||
environment<%= SeleniumOnRailsConfig.get(:environments).size > 1 ? 's' : '' %> (you're running
|
||||
<%= RAILS_ENV %>).
|
||||
</p>
|
||||
<p>
|
||||
Start your server in a different environment or see <tt><%= readme_path %></tt>
|
||||
for information regarding how to change this behavior.
|
||||
</p>
|
||||
END
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue