test/test_xembler.rb in xembly-0.3 vs test/test_xembler.rb in xembly-0.4

- old
+ new

@@ -32,18 +32,19 @@ # License:: MIT class TestXembler < XeTest def test_modifies_xml xembler = Xembly::Xembler.new( Xembly::Directives.new( - 'XPATH "/books"; ADD "book"; ADD "test"; UP; ADD "title"; SET "hi";' + 'XPATH "/books"; ADD "book"; ADD "test"; UP; ADD "title"; SET "hi;you";' ) ) matches( xembler.apply('<books/>').to_xml, [ '/*', '/books[count(book)=1]', - '/books/book[test and title]' + '/books/book[test and title]', + '/books/book/title[.="hi;you"]' ] ) end end