Always check that the rendering output is well-formed

This commit is contained in:
Alexey Verkhovsky 2005-11-13 09:27:55 +00:00
parent 2f43e4a603
commit a61c11854d

View file

@ -156,15 +156,13 @@ class StubUrlGenerator < AbstractUrlGenerator
end
end
if defined? $validate_xml_in_assert_success and $validate_xml_in_assert_success == true
module Test
module Unit
module Assertions
def assert_success(bypass_body_parsing = false)
assert_response :success
unless bypass_body_parsing
assert_nothing_raised(@response.body) { REXML::Document.new(@response.body) }
end
module Test
module Unit
module Assertions
def assert_success(bypass_body_parsing = false)
assert_response :success
unless bypass_body_parsing
assert_nothing_raised(@response.body) { REXML::Document.new(@response.body) }
end
end
end