Permalink
Browse files

test with an empty via

  • Loading branch information...
tenderlove committed May 30, 2014
1 parent 57d0da8 commit 16e210745cc66de971cfb422b27c6f39b9201680
Showing with 8 additions and 0 deletions.
  1. +8 −0 actionpack/test/dispatch/routing_test.rb
@@ -2250,6 +2250,14 @@ def test_match_without_via
end
end
+ def test_match_with_empty_via
+ assert_raises(ArgumentError) do
+ draw do
+ match '/foo/bar', :to => 'files#show', :via => []
+ end
+ end
+ end
+
def test_glob_parameter_accepts_regexp
draw do
get '/:locale/*file.:format', :to => 'files#show', :file => /path\/to\/existing\/file/

0 comments on commit 16e2107

Please sign in to comment.