test/test_xembly.rb in xembly-0.2 vs test/test_xembly.rb in xembly-0.3

- old
+ new

@@ -46,17 +46,21 @@ def test_reading_from_file Dir.mktmpdir 'test' do |dir| xml = File.join(dir, 'input.xml') File.write(xml, '<books/>') dirs = File.join(dir, 'dirs.txt') - File.write(dirs, 'XPATH "/books"; ADD "book"; ATTR "id", "123";') + File.write( + dirs, + 'XPATH "/books"; ADD "book"; ATTR "id", "123"; SET "Elegant Objects";' + ) opts = opts(['--xml', xml, '--dirs', dirs]) matches( Xembly::Base.new(opts).xml, [ '/books', '/books[count(book)=1]', - '/books/book[@id=123]' + '/books/book[@id=123]', + '/books/book[@id=123 and .="Elegant Objects"]' ] ) end end