aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2015-08-12 14:30:40 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2015-08-12 14:30:54 -0700
commit1c9431753939b9987416debf839d5707efe4dc18 (patch)
tree64a21485e62738455c5af477a58b2b536c2b7dc9 /actionpack/test
parent58117fadae1ccc1d84672cbecdc965727245e0fe (diff)
downloadrails-1c9431753939b9987416debf839d5707efe4dc18.tar.gz
rails-1c9431753939b9987416debf839d5707efe4dc18.tar.bz2
rails-1c9431753939b9987416debf839d5707efe4dc18.zip
add a method to `Scope` for getting mapping options
Eventually we don't want to expose the "options" hash from scope, only read values from it. Lets start by adding a reader method.
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/dispatch/mapper_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/test/dispatch/mapper_test.rb b/actionpack/test/dispatch/mapper_test.rb
index e36f1718ac..9076dab0c0 100644
--- a/actionpack/test/dispatch/mapper_test.rb
+++ b/actionpack/test/dispatch/mapper_test.rb
@@ -50,7 +50,8 @@ module ActionDispatch
def test_mapping_requirements
options = { }
- m = Mapper::Mapping.build({}, FakeSet.new, '/store/:name(*rest)', nil, 'foo', 'bar', nil, [:get], options)
+ scope = Mapper::Scope.new({})
+ m = Mapper::Mapping.build(scope, FakeSet.new, '/store/:name(*rest)', nil, 'foo', 'bar', nil, [:get], options)
_, _, requirements, _ = m.to_route
assert_equal(/.+?/, requirements[:rest])
end