Sha256: 2681a90f2be8df451935937335e6036e437b4e5ede2adebaf59720d45adc0052
Contents?: true
Size: 929 Bytes
Versions: 4
Compression:
Stored size: 929 Bytes
Contents
# :nodoc: the routes used in all tests class ActionController::TestCase def setup_routes @routes = ActionController::Routing::RouteSet.new @routes.draw do resource :cookie, :controller => 'cookie' do collection { get :bouncer } 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
authpwn_rails-0.12.0 | test/helpers/routes.rb |
authpwn_rails-0.11.1 | test/helpers/routes.rb |
authpwn_rails-0.11.0 | test/helpers/routes.rb |
authpwn_rails-0.10.12 | test/helpers/routes.rb |