Sha256: 093cc5fa24888bff1b4244e5f939339d4df38c3d483b201d120c44017427819c

Contents?: true

Size: 1.03 KB

Versions: 23

Compression:

Stored size: 1.03 KB

Contents

Feature: CSV options

  Scenario: Sucessfully parse a valid CSV
    Given I have a CSV with the following content:
    """
'Foo';'Bar';'Baz'
'1';'2';'3'
'3';'2';'1'
    """
    And I set the delimiter to ";"
    And I set quotechar to "'" 
    And it is stored at the url "http://example.com/example1.csv"
    When I ask if the CSV is valid
    Then I should get the value of true

  Scenario: Warn if options seem to return invalid data
    Given I have a CSV with the following content:
    """
'Foo';'Bar';'Baz'
'1';'2';'3'
'3';'2';'1'
    """
    And I set the delimiter to ","
    And I set quotechar to """ 
    And it is stored at the url "http://example.com/example1.csv"
    And I ask if there are warnings
    Then there should be 1 warnings
    And that warning should have the type "check_options"

  Scenario: Use esoteric line endings
    Given I have a CSV file called "windows-line-endings.csv"
    And it is stored at the url "http://example.com/example1.csv"
    When I ask if the CSV is valid
    Then I should get the value of true
    

Version data entries

23 entries across 23 versions & 3 rubygems

Version Path
csvlint-1.4.0 features/csv_options.feature
csvlint-1.3.0 features/csv_options.feature
csvlint-1.2.0 features/csv_options.feature
csvlint-1.1.0 features/csv_options.feature
csvlint-1.0.0 features/csv_options.feature
csvlint-0.4.0 features/csv_options.feature
csvlint-0.3.3 features/csv_options.feature
csvlint-0.3.2 features/csv_options.feature
csvlint-0.3.1 features/csv_options.feature
csvlint-0.3.0 features/csv_options.feature
wjordan213-csvlint-0.2.8 features/csv_options.feature
wjordan213.csvlint-0.2.8 features/csv_options.feature
csvlint-0.2.6 features/csv_options.feature
csvlint-0.2.5 features/csv_options.feature
csvlint-0.2.4 features/csv_options.feature
csvlint-0.2.2 features/csv_options.feature
csvlint-0.2.1 features/csv_options.feature
csvlint-0.2.0 features/csv_options.feature
csvlint-0.1.4 features/csv_options.feature
csvlint-0.1.3 features/csv_options.feature