diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2013-07-17 08:56:34 +0100 |
---|---|---|
committer | Andrew White <andyw@pixeltrix.co.uk> | 2013-07-17 08:56:34 +0100 |
commit | 74722d66d332d1d768459d8b510cc082fe3d5618 (patch) | |
tree | 88fb80cfe659cc83407be2015f8b624e4afb83cf /actionpack/test/routing | |
parent | 96310f69e1fd4bf0d744ed9599df895ef1fcf2d1 (diff) | |
download | rails-74722d66d332d1d768459d8b510cc082fe3d5618.tar.gz rails-74722d66d332d1d768459d8b510cc082fe3d5618.tar.bz2 rails-74722d66d332d1d768459d8b510cc082fe3d5618.zip |
Fix failing test missed for the past year :(
When optimized path helpers were re-introduced in d7014bc the test added
in a328f2f broke but no-one noticed because it wasn't being run by the
test suite.
Fix the test by checking for nil values or empty strings after the args
have been parameterized.
Diffstat (limited to 'actionpack/test/routing')
-rw-r--r-- | actionpack/test/routing/helper_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/routing/helper_test.rb b/actionpack/test/routing/helper_test.rb index a5588d95fa..0028aaa629 100644 --- a/actionpack/test/routing/helper_test.rb +++ b/actionpack/test/routing/helper_test.rb @@ -22,7 +22,7 @@ module ActionDispatch x = Class.new { include rs.url_helpers } - assert_raises ActionController::RoutingError do + assert_raises ActionController::UrlGenerationError do x.new.pond_duck_path Duck.new end end |