1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Add match 302 http code for log in redirect_to

This commit is contained in:
Rodrigo Ramírez Norambuena 2020-01-04 14:24:48 -03:00
parent f619ac91d3
commit 9b92b1fb6d

View file

@ -226,6 +226,7 @@ class ACLogSubscriberTest < ActionController::TestCase
assert_equal 3, logs.size
assert_equal "Redirected to http://foo.bar/", logs[1]
assert_match(/Completed 302/, logs.last)
end
def test_filter_redirect_url_by_string