Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add a test for controllers without colons

  • Loading branch information...
commit 6cabf1d19f90af0360d195df145ca5977704a61b 1 parent 89bf31e
@tenderlove tenderlove authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 actionpack/test/dispatch/routing_test.rb
View
10 actionpack/test/dispatch/routing_test.rb
@@ -3558,6 +3558,16 @@ def test_warn_with_ruby_constant_syntax_namespaced_controller_option
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
Please sign in to comment.
Something went wrong with that request. Please try again.