aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorPiotr Sarnacki <drogus@gmail.com>2010-08-05 23:58:12 +0200
committerPiotr Sarnacki <drogus@gmail.com>2010-09-05 13:44:37 +0200
commit3088b4f84f802fb84c4750ce25d8fe57c6c0a79e (patch)
tree8dfe8d05a351b470901d5ed6652305566b8836c1 /actionpack/test
parent8958f332bbb552e87fd9f8c78dd11bdeab7897fc (diff)
downloadrails-3088b4f84f802fb84c4750ce25d8fe57c6c0a79e.tar.gz
rails-3088b4f84f802fb84c4750ce25d8fe57c6c0a79e.tar.bz2
rails-3088b4f84f802fb84c4750ce25d8fe57c6c0a79e.zip
raise error on invalid HTTP methods or :head passed with :via in routes
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/controller/resources_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/controller/resources_test.rb b/actionpack/test/controller/resources_test.rb
index 3dc2429dae..0573eac119 100644
--- a/actionpack/test/controller/resources_test.rb
+++ b/actionpack/test/controller/resources_test.rb
@@ -718,7 +718,7 @@ class ResourcesTest < ActionController::TestCase
set.draw do
resources :messages do
member do
- match :something, :via => :invalid
+ match :something, :via => [:invalid, :get]
end
end
end