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

Merge pull request #38163 from roramirez/match-302-redirect

Add match 302 http code for log in redirect_to test
This commit is contained in:
Rafael França 2020-01-07 10:35:06 -03:00 committed by GitHub
commit 114b261f84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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