lib/extensions/action_controller/response.rb in rtml-2.0.3 vs lib/extensions/action_controller/response.rb in rtml-2.0.4
- old
+ new
@@ -6,25 +6,7 @@
unless template.template_format == :rtml || template.template_format == :tml
raise "Expected format to be :rtml or :tml, found #{template.template_format.inspect}"
end
body.valid_tml?
end
-
- # Verifies that the produced TML resembles the given structure. See +Rtml::Rules::DomValidation#validate_tml_dom+
- # for more information.
- def tml_should_resemble(structure)
- body.validate_tml_structure(structure)
- end
-
- # Verifies that the produced TML does NOT resemble the given structure.
- # See +Rtml::Rules::DomValidation#validate_tml_dom+ for more information.
- def tml_should_not_resemble(structure)
- inspected = structure.inspect
- begin
- body.validate_tml_structure(structure)
- rescue
- return true
- end
- raise Rtml::Errors::ProcessingError, "TML was expected not to resemble #{inspected}, but it did!", caller
- end
end
end