confused about optional matchers

11 views
Skip to first unread message

Tim

unread,
Dec 31, 2014, 7:28:07 AM12/31/14
to specs2...@googlegroups.com
Hi
I can't figure out how to run with optional matchers:

import org.specs2.mutable.Specification
import org.specs2.form
/**
* Created by tim on 31/12/14.
*/
class TestSpecs extends Specification with ???? {
"compare xml" in {
<a>hello</a> must ==/(<a>hello </a>)

}

}

What exactly do I need to extend with? And do I need to do anything else?

etorreborre

unread,
Jan 2, 2015, 5:03:50 AM1/2/15
to specs2...@googlegroups.com
You need to mix-in the org.specs2.matcher.XmlMatchers trait and you need to add the specs2-matcher-extra jar to your build.

Eric.
Reply all
Reply to author
Forward
0 new messages