Sha256: 13f1735b95166a30f4219c52c35bfc700c8e52a8b98b166ede0eb21f22015b31

Contents?: true

Size: 824 Bytes

Versions: 6

Compression:

Stored size: 824 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 :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

6 entries across 6 versions & 1 rubygems

Version Path
authpwn_rails-0.10.11 test/helpers/routes.rb
authpwn_rails-0.10.10 test/helpers/routes.rb
authpwn_rails-0.10.9 test/helpers/routes.rb
authpwn_rails-0.10.8 test/helpers/routes.rb
authpwn_rails-0.10.7 test/helpers/routes.rb
authpwn_rails-0.10.6 test/helpers/routes.rb