mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-21 01:30: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
47
vendor/plugins/selenium-on-rails/routes.rb
vendored
47
vendor/plugins/selenium-on-rails/routes.rb
vendored
|
|
@ -1,23 +1,24 @@
|
|||
module ActionController
|
||||
module Routing #:nodoc:
|
||||
class RouteSet #:nodoc:
|
||||
alias_method :draw_without_selenium_routes, :draw
|
||||
def draw
|
||||
draw_without_selenium_routes do |map|
|
||||
map.connect 'selenium/setup',
|
||||
:controller => 'selenium', :action => 'setup'
|
||||
map.connect 'selenium/tests/*testname',
|
||||
:controller => 'selenium', :action => 'test_file'
|
||||
map.connect 'selenium/postResults',
|
||||
:controller => 'selenium', :action => 'record'
|
||||
map.connect 'selenium/postResults/:logFile',
|
||||
:controller => 'selenium', :action => 'record', :requirements => { :logFile => /.*/ }
|
||||
map.connect 'selenium/*filename',
|
||||
:controller => 'selenium', :action => 'support_file'
|
||||
|
||||
yield map
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
module ActionController
|
||||
module Routing #:nodoc:
|
||||
class RouteSet #:nodoc:
|
||||
alias_method :draw_without_selenium_routes, :draw
|
||||
def draw
|
||||
draw_without_selenium_routes do |map|
|
||||
map.connect 'selenium/setup',
|
||||
:controller => 'selenium', :action => 'setup'
|
||||
map.connect 'selenium/tests/*testname',
|
||||
:controller => 'selenium', :action => 'test_file'
|
||||
map.connect 'selenium/postResults',
|
||||
:controller => 'selenium', :action => 'record'
|
||||
map.connect 'selenium/postResults/:logFile',
|
||||
:controller => 'selenium', :action => 'record', :requirements => { :logFile => /.*/ }
|
||||
map.connect 'selenium/*filename',
|
||||
:controller => 'selenium', :action => 'support_file'
|
||||
map.connect 'switch_environment',
|
||||
:controller => 'switch_environment', :action => 'index'
|
||||
yield map if block_given?
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue