Create a matcher that compares the supplied arguments against the result of an XML transformation.
Create a matcher that compares the supplied arguments against the result of an XML transformation.
Example use:
class MySpecification extends mutable.Specification with XsltSpecification { val stylesheet = XSLT.file("my-stylesheet.xsl") "Convert a into b" in { // Apply the templates for the element in the XSLT stylesheet and check the result. applying { <a>foo</a> } must produce { <b>foo</b> } } }
A trait you can mix in to your specs2 specification to compare the results of Transformation instances to a sequence of expected values.