Sha256: 9b556c8b49fbe90f7ddf775790236d0c7df6197e74587e13c094c1816be25712
Contents?: true
Size: 1.05 KB
Versions: 11
Compression:
Stored size: 1.05 KB
Contents
# :nodoc: the routes used in all tests class ActionController::TestCase def setup_routes if defined? ActionDispatch::Routing # Rails 4. @routes = ActionDispatch::Routing::RouteSet.new else # Rails 3. @routes = ActionController::Routing::RouteSet.new end @routes.draw do resource :cookie, controller: 'cookie' do collection do get :bouncer put :update end end resource :http_basic, controller: 'http_basic' do collection { get :bouncer } end resource :facebook, controller: 'facebook' authpwn_session controller: 'bare_session', method_names: 'bare_session' authpwn_session controller: 'bare_session2', method_names: 'bare_session2' root to: 'session#index' # NOTE: this route should be kept in sync with the session template. authpwn_session end ApplicationController.send :include, @routes.url_helpers ActionMailer::Base.send :include, @routes.url_helpers end setup :setup_routes end
Version data entries
11 entries across 11 versions & 1 rubygems