Fix Revision 601
With tests, this time.
This commit is contained in:
parent
70aa50ad4b
commit
7b22daa784
3 changed files with 13 additions and 4 deletions
|
@ -765,6 +765,11 @@ class WikiControllerTest < ActionController::TestCase
|
|||
'author' => 'AuthorOfNewPage'
|
||||
|
||||
assert_equal 403, r.response_code
|
||||
resp = %{<p>Access denied. Your IP address, 127.0.0.2, was found on one or more DNSBL blocking } +
|
||||
%{list(s).</p>\n<p>See <a href='http://www.spamcop.net/w3m?action=checkblock&ip=127.0.0.2} +
|
||||
%{'>here</a> for more information.</p>\n<p>See <a href='http://www.spamhaus.org/query/bl?ip=1} +
|
||||
%{27.0.0.2'>here</a> for more information.</p>\n}
|
||||
assert_match Regexp.new(Regexp.escape(resp)), r.body
|
||||
end
|
||||
|
||||
def test_dnsbl_filter_allow_action
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue