features/cli.feature in xembly-0.3 vs features/cli.feature in xembly-0.4
- old
+ new
@@ -23,11 +23,11 @@
And I have a "dirs.txt" file with content:
"""
XPATH "/books";
ADD "book";
ATTR "isbn", "1519166915";
- SET "Elegant Objects";
+ SET ""Elegant Objects; The Book"";
UP;
ADD "author";
ADDIF "name";
SET "yegor";
UP; UP;
@@ -37,10 +37,11 @@
"""
When I run bin/xembly with "-v -d dirs.txt -f out.xml -x text.xml"
Then Exit code is zero
And Stdout contains "reading text.xml"
And XML file "out.xml" matches "/books[count(book) = 3]"
- And XML file "out.xml" matches "/books/book[@isbn='1519166915' and .='Elegant Objects']"
+ And XML file "out.xml" matches "/books/book[@isbn='1519166915']"
+ And XML file "out.xml" matches "/books/book[.='\"Elegant Objects; The Book\"']"
And XML file "out.xml" matches "/books[author='yegor']"
And XML file "out.xml" matches "/books[not(garbage)]"
Scenario: Rejects unknown options
When I run bin/xembly with "--some-unknown-option"