Sha256: 7cc1ca7d703cd6b50734db2fffb287f2d32e5e16c823f35d1ffc9c1c1c11004d

Contents?: true

Size: 1.32 KB

Versions: 27

Compression:

Stored size: 1.32 KB

Contents

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 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 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"

  Scenario: Throwing exception on duplicates
    Given I have a "Sample.java" file with content:
    """
    @todo #13/DEV:15min Some text first
    @todo #13/TEST:15min The text second
    """
    When I run bin/pdd with "--rule=available-roles:DEV,IMP"
    Then Exit code is not zero
    Then Stdout contains "defines role TEST"

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
pdd-0.17.8 features/applies_rules.feature
pdd-0.17.7 features/applies_rules.feature
pdd-0.17.6 features/applies_rules.feature
pdd-0.17.5 features/applies_rules.feature
pdd-0.17.4 features/applies_rules.feature
pdd-0.17.3 features/applies_rules.feature
pdd-0.17.2 features/applies_rules.feature
pdd-0.17.1 features/applies_rules.feature
pdd-0.17 features/applies_rules.feature
pdd-0.16.4 features/applies_rules.feature
pdd-0.16.3 features/applies_rules.feature
pdd-0.16.2 features/applies_rules.feature
pdd-0.16.1 features/applies_rules.feature
pdd-0.16 features/applies_rules.feature
pdd-0.15.4 features/applies_rules.feature
pdd-0.15.3 features/applies_rules.feature
pdd-0.15.2 features/applies_rules.feature
pdd-0.15.1 features/applies_rules.feature
pdd-0.15 features/applies_rules.feature
pdd-0.14.4 features/applies_rules.feature