diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-07-17 22:12:42 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-07-17 22:12:42 -0700 |
commit | 39441f78e3a4bda8774b0a94214ac53dafb6ee8a (patch) | |
tree | 6d8c11c51ccffd60707fc8f64bcb20f501a12abb /actionpack/test | |
parent | ac5cc6957142f2b22eee0f86710fa18f60313aec (diff) | |
parent | 0f5ba6e124b583fa0c92fc6e82fff124673d8e0d (diff) | |
download | rails-39441f78e3a4bda8774b0a94214ac53dafb6ee8a.tar.gz rails-39441f78e3a4bda8774b0a94214ac53dafb6ee8a.tar.bz2 rails-39441f78e3a4bda8774b0a94214ac53dafb6ee8a.zip |
Merge pull request #10800 from 907th/fix-custom-message-for-assert_redirected_to
Fix #10842. `assert_redirected_to` does not show user-supplied message.
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/dispatch/routing_assertions_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/dispatch/routing_assertions_test.rb b/actionpack/test/dispatch/routing_assertions_test.rb index 9f95d82129..423eeda92c 100644 --- a/actionpack/test/dispatch/routing_assertions_test.rb +++ b/actionpack/test/dispatch/routing_assertions_test.rb @@ -42,7 +42,7 @@ class RoutingAssertionsTest < ActionController::TestCase def test_assert_recognizes_with_extras assert_recognizes({ :controller => 'articles', :action => 'index', :page => '1' }, '/articles', { :page => '1' }) end - + def test_assert_recognizes_with_method assert_recognizes({ :controller => 'articles', :action => 'create' }, { :path => '/articles', :method => :post }) assert_recognizes({ :controller => 'articles', :action => 'update', :id => '1' }, { :path => '/articles/1', :method => :put }) |