diff options
author | Jamis Buck <jamis@37signals.com> | 2006-08-01 20:56:26 +0000 |
---|---|---|
committer | Jamis Buck <jamis@37signals.com> | 2006-08-01 20:56:26 +0000 |
commit | 0cfde5f8c063c74e9ad49c2c9eae96256155c3bd (patch) | |
tree | 84f02aad88ac1d55ea7a6d89ef4a86bfb4d60ff2 | |
parent | 7d017781393b72a5257dbbfc99b124a7a0c492f1 (diff) | |
download | rails-0cfde5f8c063c74e9ad49c2c9eae96256155c3bd.tar.gz rails-0cfde5f8c063c74e9ad49c2c9eae96256155c3bd.tar.bz2 rails-0cfde5f8c063c74e9ad49c2c9eae96256155c3bd.zip |
Make sure assert_respond_to works with symbol parameters
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4648 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | actionpack/lib/action_controller/assertions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/assertions.rb b/actionpack/lib/action_controller/assertions.rb index a89f515af6..710daa3a4d 100644 --- a/actionpack/lib/action_controller/assertions.rb +++ b/actionpack/lib/action_controller/assertions.rb @@ -78,7 +78,7 @@ module Test #:nodoc: begin url = {} - original = { :expected => options, :actual => @response.redirected_to.dup } + original = { :expected => options, :actual => @response.redirected_to.is_a?(Symbol) ? @response.redirected_to : @response.redirected_to.dup } original.each do |key, value| if value.is_a?(Symbol) value = @controller.respond_to?(value, true) ? @controller.send(value) : @controller.send("hash_for_#{option}") |