diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2010-03-02 14:07:42 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-03-02 14:16:25 -0800 |
commit | 9f83cdc38e03dc3e65a702b00dc4a3cc0bb44e60 (patch) | |
tree | e3d28c9f3bf1522bad9acf1215e255df4cd1d5be /actionpack/test | |
parent | 6d7d03b77c281014ab01177ed47b7e887866e3f9 (diff) | |
download | rails-9f83cdc38e03dc3e65a702b00dc4a3cc0bb44e60.tar.gz rails-9f83cdc38e03dc3e65a702b00dc4a3cc0bb44e60.tar.bz2 rails-9f83cdc38e03dc3e65a702b00dc4a3cc0bb44e60.zip |
No longer add missing leading / on path args to assert_redirected_to. Deprecated in 2.3.6.
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/action_pack_assertions_test.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/actionpack/test/controller/action_pack_assertions_test.rb b/actionpack/test/controller/action_pack_assertions_test.rb index 6906dc97e8..26e0d6d844 100644 --- a/actionpack/test/controller/action_pack_assertions_test.rb +++ b/actionpack/test/controller/action_pack_assertions_test.rb @@ -469,9 +469,11 @@ class ActionPackAssertionsControllerTest < ActionController::TestCase assert_redirected_to '/some/path' end - def test_redirected_to_url_no_leadling_slash + def test_redirected_to_url_no_leading_slash_fails process :redirect_to_path - assert_redirected_to 'some/path' + assert_raise ActiveSupport::TestCase::Assertion do + assert_redirected_to 'some/path' + end end def test_redirected_to_url_full_url |