Sha256: 8d20ffb94afc9d59778ab5fbdcd56d76480229075113b0614a1252a42a736223

Contents?: true

Size: 1.19 KB

Versions: 5

Compression:

Stored size: 1.19 KB

Contents

Feature: Tests the parse_date transform

  Background:
    Given the job is 'ParseDate'
    And the job source 'Source Data'
    And the job target 'Target Data'

    And the source 'Source Data'
    And the target 'Target Data'
    And the following example record for 'Source Data':
      | Date String |
      | 2015-12-31  |

  Scenario Outline: Parsing date strings.
    Given the source field 'Date String' has the value "<Date String>"
    And the job parameter 'format' is "<Format>"
    Then the target field 'Parsed Date' is set to the value "<Parsed Date>"
    Examples:
      | Date String | Format   | Parsed Date |
      | 2015-10-21  | %Y-%m-%d | 2015-10-21  |
      | 10/21/2015  | %m/%d/%Y | 2015-10-21  |
      | 20151021    | %Y%m%d   | 2015-10-21  |
      |             | %m/%d/%Y |             |

  Scenario Outline: Parsing date strings for missing values.
    Given the source field 'Date String' has the value ""
    And the job parameter 'if_blank' is "<If Blank>"

    Then the target field 'Parsed Date' is set to the value "<Parsed Date>"
    Examples:
      | If Blank   | Parsed Date |
      | low        | 1900-01-01  |
      | high       | 2999-12-31  |
      |            |             |

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
remi-0.2.6 lib/remi/project/features/transforms/parse_date.feature
remi-0.2.5 lib/remi/project/features/transforms/parse_date.feature
remi-0.2.4 lib/remi/project/features/transforms/parse_date.feature
remi-0.2.3 lib/remi/project/features/transforms/parse_date.feature
remi-0.2.2 lib/remi/project/features/transforms/parse_date.feature