We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28eb8b4 commit e7a1740Copy full SHA for e7a1740
actionpack/lib/action_dispatch/testing/assertions/response.rb
@@ -55,7 +55,7 @@ def assert_response(type, message = nil)
55
# # Permanently).
56
# assert_redirected_to "/some/path", status: :moved_permanently
57
def assert_redirected_to(url_options = {}, options = {}, message = nil)
58
- options, message = message, nil if message.is_a?(Hash) && options.empty?
+ options, message = {}, options unless options.is_a?(Hash)
59
60
status = options[:status] || :redirect
61
assert_response(status, message)
0 commit comments