diff --git a/lib/rspec-xml/xml_matchers/have_xpath.rb b/lib/rspec-xml/xml_matchers/have_xpath.rb index db7134e..38ac056 100644 --- a/lib/rspec-xml/xml_matchers/have_xpath.rb +++ b/lib/rspec-xml/xml_matchers/have_xpath.rb @@ -1,6 +1,8 @@ module RSpecXML module XMLMatchers class HaveXPath + include RSpec::Matchers::Composable + def initialize(xpath, example_group) self.matcher = Matcher.new( :xpath => xpath,