Sha256: bbcce8f4420482acdc11604a44e4862f4a72926f7437df390907788c02a0eac5

Contents?: true

Size: 581 Bytes

Versions: 5

Compression:

Stored size: 581 Bytes

Contents

require 'test_helper'

module TestRailsAdapter
  routes = ActionController::Routing::Routes = ActionController::Routing::RouteSet.new
  routes.draw do |map|
    map.connect '/', :controller => 'rails_test/tests', :action => 'index'
    map.foo '/foo/:id', :controller => 'rails_test/tests', :action => 'show'
    map.filter :uuid, :pagination ,:locale, :extension
  end

  attr_reader :session
  delegate :get, :response, :to => :session

  def setup
    @session = ActionController::Integration::Session.new(lambda { |env| ActionController::Routing::Routes.call(env) })
  end
end

Version data entries

5 entries across 5 versions & 4 rubygems

Version Path
routing-filter-0.2.4 test/test_adapters/rails_2.rb
sayso-routing-filter-0.2.2.001 test/test_adapters/rails_2.rb
vigetlabs-routing-filter-0.2.4 test/test_adapters/rails_2.rb
aratak-routing-filter-0.2.4 test/test_adapters/rails_2.rb
routing-filter-0.2.3 test/test_adapters/rails_2.rb