Sha256: ce5982ab189f906ceb7edadc452f066e070652615efeb89fbd6fc07c14800a7a

Contents?: true

Size: 641 Bytes

Versions: 6

Compression:

Stored size: 641 Bytes

Contents

Feature: Error handling

  As a user
  I want to get good error message
  In order to fix my mistakes

  Scenario: Missing file name
    When I run `filegen`
    Then the output should contain:
    """
    Template file name is missing.
    """

  Scenario: Non existing file
    When I run `filegen template1.erb`
    Then the stderr should contain:
    """
    File "template1.erb" does not exist
    """

  Scenario: Non erb file
    Given an empty file named "template1.abc"
    When I run `filegen template1.abc`
    Then the stderr should contain:
    """
    File "template1.abc" is not a valid erb template: file ending erb
    """

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
filegen-0.4.1 features/error_handling.feature
filegen-0.4.0 features/error_handling.feature
filegen-0.3.1 features/error_handling.feature
filegen-0.3.0 features/error_handling.feature
filegen-0.2.3 features/error_handling.feature
filegen-0.2.2 features/error_handling.feature