diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-05-28 17:05:54 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-05-28 17:05:54 -0700 |
commit | 6cabf1d19f90af0360d195df145ca5977704a61b (patch) | |
tree | 0dbe7813e5a2b88314f007f38d4ef0539272b176 /actionpack/test | |
parent | 89bf31ee565a0f5b1d7138deaa1873223ef22da2 (diff) | |
download | rails-6cabf1d19f90af0360d195df145ca5977704a61b.tar.gz rails-6cabf1d19f90af0360d195df145ca5977704a61b.tar.bz2 rails-6cabf1d19f90af0360d195df145ca5977704a61b.zip |
add a test for controllers without colons
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/dispatch/routing_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/actionpack/test/dispatch/routing_test.rb b/actionpack/test/dispatch/routing_test.rb index 20e79523f9..8249403a65 100644 --- a/actionpack/test/dispatch/routing_test.rb +++ b/actionpack/test/dispatch/routing_test.rb @@ -3558,6 +3558,16 @@ class TestNamespaceWithControllerOption < ActionDispatch::IntegrationTest assert_match "'Admin::StorageFiles' is not a supported controller name", e.message end + + def test_warn_with_ruby_constant_syntax_no_colons + e = assert_raise(ArgumentError) do + draw do + resources :storage_files, :controller => 'Admin' + end + end + + assert_match "'Admin' is not a supported controller name", e.message + end end class TestDefaultScope < ActionDispatch::IntegrationTest |