Sha256: 2bb467cb0cfc82a9b6a1420d958c00570ba6fcd30526e00cb79e0a15d1b92ca8

Contents?: true

Size: 528 Bytes

Versions: 12

Compression:

Stored size: 528 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'
      resource :facebook, :controller => 'facebook'
      # NOTE: this route should be kept in sync with the session template.
      resource :session, :controller => 'session'
      root :to => 'session#index'
    end
    ApplicationController.send :include, @routes.url_helpers
  end
  
  setup :setup_routes
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
authpwn_rails-0.5.6 test/helpers/routes.rb
authpwn_rails-0.5.5 test/helpers/routes.rb
authpwn_rails-0.5.4 test/helpers/routes.rb
authpwn_rails-0.5.3 test/helpers/routes.rb
authpwn_rails-0.5.2 test/helpers/routes.rb
authpwn_rails-0.5.1 test/helpers/routes.rb
authpwn_rails-0.5.0 test/helpers/routes.rb
authpwn_rails-0.4.7 test/helpers/routes.rb
authpwn_rails-0.4.6 test/helpers/routes.rb
authpwn_rails-0.4.5 test/helpers/routes.rb
authpwn_rails-0.4.4 test/helpers/routes.rb
authpwn_rails-0.4.3 test/helpers/routes.rb