public
Description: This repo is no longer maintained, see the official repository by paytonrules.
Homepage: http://selenium-on-rails.openqa.org/
Clone URL: git://github.com/ryanb/selenium-on-rails.git
selenium-on-rails / routes.rb
100644 24 lines (22 sloc) 0.866 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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