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:
commit
114b261f84
1 changed files with 1 additions and 0 deletions
|
@ -226,6 +226,7 @@ class ACLogSubscriberTest < ActionController::TestCase
|
||||||
|
|
||||||
assert_equal 3, logs.size
|
assert_equal 3, logs.size
|
||||||
assert_equal "Redirected to http://foo.bar/", logs[1]
|
assert_equal "Redirected to http://foo.bar/", logs[1]
|
||||||
|
assert_match(/Completed 302/, logs.last)
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_filter_redirect_url_by_string
|
def test_filter_redirect_url_by_string
|
||||||
|
|
Loading…
Reference in a new issue