From a61c11854dbb5b082ae05dae0afccf914b594db4 Mon Sep 17 00:00:00 2001 From: Alexey Verkhovsky Date: Sun, 13 Nov 2005 09:27:55 +0000 Subject: [PATCH] Always check that the rendering output is well-formed --- test/test_helper.rb | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/test/test_helper.rb b/test/test_helper.rb index f23bebeb..fc2079f3 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -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