spec/excesselt_spec.rb in excesselt-1.1.4 vs spec/excesselt_spec.rb in excesselt-1.1.5

- old
+ new

@@ -93,12 +93,14 @@ xml = <<-XML <parent><unexpected></unexpected></parent> XML @instance = @stylesheet.new lambda { @instance.transform(xml) }.should raise_exception {|e| - e.message.should =~ /With selector .* and included modules: \[TestHelper\]/ - e.message.should =~ /There is no style defined to handle element 'unexpected' in this context \(document, parent\)/ - + e.message.should =~ /With selector '.*' and included modules: \[TestHelper\]/ + e.message.should =~ /There is no style defined to handle this element/ + e.message.should =~ /CSS Path: 'parent > unexpected'/ + e.message.should =~ /Xpath: '\/parent\/unexpected'/ + e.message.should =~ /Context: 'document, parent'/ } end end