features/cli.feature in pdd-0.2 vs features/cli.feature in pdd-0.2.1
- old
+ new
@@ -19,6 +19,20 @@
// later
}
}
"""
When I run bin/pdd with "-v -s . -f out.xml"
- Then XML file "out.xml" matches "/puzzles[count(puzzle)=1]"
+ Then Exit code is zero
+ And Stdout contains "reading ."
+ And XML file "out.xml" matches "/puzzles[count(puzzle)=1]"
+
+ Scenario: Simple puzzles collecting into stdout
+ Given I have a "Sample.txt" file with content:
+ """
+ ~~
+ ~~ @todo #44 First
+ ~~ and second
+ ~~
+ """
+ When I run bin/pdd with "> out.xml"
+ Then Exit code is zero
+ And XML file "out.xml" matches "/puzzles[count(puzzle)=1]"