aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2014-07-01 15:33:30 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2014-07-15 14:53:08 -0700
commit0777b17dafd54442409c02237be8b5562025ed3f (patch)
treef335519e200f4b87f9a41b6b5eb9a00e4cfc1776 /actionpack/test
parent93e09f52781993f9f6b36af5b93e7d8892252271 (diff)
downloadrails-0777b17dafd54442409c02237be8b5562025ed3f.tar.gz
rails-0777b17dafd54442409c02237be8b5562025ed3f.tar.bz2
rails-0777b17dafd54442409c02237be8b5562025ed3f.zip
RouteSet should be in charge of constructing the dispather
Now we can override how requests are dispatched in the routeset object
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/dispatch/mapper_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/dispatch/mapper_test.rb b/actionpack/test/dispatch/mapper_test.rb
index d8d3209dac..3e554a9cf6 100644
--- a/actionpack/test/dispatch/mapper_test.rb
+++ b/actionpack/test/dispatch/mapper_test.rb
@@ -3,7 +3,7 @@ require 'abstract_unit'
module ActionDispatch
module Routing
class MapperTest < ActiveSupport::TestCase
- class FakeSet
+ class FakeSet < ActionDispatch::Routing::RouteSet
attr_reader :routes
alias :set :routes
@@ -38,7 +38,7 @@ module ActionDispatch
def test_mapping_requirements
options = { :controller => 'foo', :action => 'bar', :via => :get }
- m = Mapper::Mapping.build({}, '/store/:name(*rest)', options)
+ m = Mapper::Mapping.build({}, FakeSet.new, '/store/:name(*rest)', options)
_, _, requirements, _ = m.to_route
assert_equal(/.+?/, requirements[:rest])
end