features/catches_broken_puzzles.feature in pdd-0.7 vs features/catches_broken_puzzles.feature in pdd-0.7.1
- old
+ new
@@ -31,5 +31,21 @@
// later
}
}
"""
When I run pdd it fails with "Too many spaces"
+
+ Scenario: Throwing exception on yet another broken puzzle
+ Given I have a "Sample.java" file with content:
+ """
+ public class Main {
+ //
+ // @todo #13 This puzzle has an incorrect format
+ // because there is no space character in the
+ // second and third lines
+ //
+ public void main(String[] args) {
+ // later
+ }
+ }
+ """
+ When I run pdd it fails with "Space expected"