diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-02-26 09:15:43 -0800 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-02-26 09:15:43 -0800 |
commit | 28bebb225f567b4c54b2f0ca0a2fc91c2a4d04be (patch) | |
tree | 7808eaca7e9a37316a1868f9c35daa3047ee0850 /actionpack/test | |
parent | 62b783e5319f715794b8976f424bfacb85da9c1f (diff) | |
parent | 35f38b71dfeacbb4f92a2b1bf4d151c2061700d5 (diff) | |
download | rails-28bebb225f567b4c54b2f0ca0a2fc91c2a4d04be.tar.gz rails-28bebb225f567b4c54b2f0ca0a2fc91c2a4d04be.tar.bz2 rails-28bebb225f567b4c54b2f0ca0a2fc91c2a4d04be.zip |
Merge pull request #9434 from zires/dev
Journey::Path::Pattern#new raise more meaningful exception message.
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/journey/path/pattern_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/test/journey/path/pattern_test.rb b/actionpack/test/journey/path/pattern_test.rb index 2b7227cd0d..ce02104181 100644 --- a/actionpack/test/journey/path/pattern_test.rb +++ b/actionpack/test/journey/path/pattern_test.rb @@ -75,6 +75,10 @@ module ActionDispatch end end + def test_to_raise_exception_with_bad_expression + assert_raise(ArgumentError, "Bad expression: []") { Pattern.new [] } + end + def test_to_regexp_with_extended_group strexp = Router::Strexp.new( '/page/:name', |