diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-15 13:37:05 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-15 13:37:27 -0800 |
commit | 0be181bfa03f8340fa4945f891409c25a804de7f (patch) | |
tree | 6863b4588c84f45931dcadf9aca890976bd3e6a2 /actionpack/test | |
parent | 91a6db90cf8b2c07af4cf64a9c587268106aadd5 (diff) | |
download | rails-0be181bfa03f8340fa4945f891409c25a804de7f.tar.gz rails-0be181bfa03f8340fa4945f891409c25a804de7f.tar.bz2 rails-0be181bfa03f8340fa4945f891409c25a804de7f.zip |
make sure we are only doing sanity checking against regular expressions
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/action_pack_assertions_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/actionpack/test/controller/action_pack_assertions_test.rb b/actionpack/test/controller/action_pack_assertions_test.rb index 5a210aa9ec..22ccd2e6b3 100644 --- a/actionpack/test/controller/action_pack_assertions_test.rb +++ b/actionpack/test/controller/action_pack_assertions_test.rb @@ -171,6 +171,14 @@ class ActionPackAssertionsControllerTest < ActionController::TestCase end end + def test_string_constraint + with_routing do |set| + set.draw do |map| + match "photos", :to => 'action_pack_assertions#nothing', :constraints => {:subdomain => "admin"} + end + end + end + def test_assert_redirect_to_named_route_failure with_routing do |set| set.draw do |