features/applies_rules.feature in pdd-0.9 vs features/applies_rules.feature in pdd-0.10

- old
+ new

@@ -1,22 +1,31 @@ Feature: Applies Post-Parsing Rules As a source code writer I want to be sure that certain post-parsing rules are applied - Scenario: Throwing exception on invalid estimate + Scenario: Throwing exception on big estimates Given I have a "Sample.java" file with content: """ @todo #13:180m This puzzle has too big estimate """ When I run bin/pdd with "--rule=max-estimate:90" Then Exit code is not zero Then Stdout contains "bigger than 90 minutes" - Scenario: Throwing exception on invalid estimate + Scenario: Throwing exception on small estimates Given I have a "Sample.java" file with content: """ @todo #13:15min This puzzle has too small estimate """ When I run bin/pdd with "--rule=min-estimate:30" Then Exit code is not zero Then Stdout contains "lower than 30 minutes" + Scenario: Throwing exception on duplicates + Given I have a "Sample.java" file with content: + """ + @todo #13:15min The text + @todo #13:15min The text + """ + When I run bin/pdd with "" + Then Exit code is not zero + Then Stdout contains "there are 2 duplicate"