Sha256: 30631fa1cafb022beb827af633d1eae44863abf2b7a98c0c9122ab956a4bb67b

Contents?: true

Size: 551 Bytes

Versions: 6

Compression:

Stored size: 551 Bytes

Contents

Given(/^I set the delimiter to "(.*?)"$/) do |delimiter|
  @csv_options ||= default_csv_options
  @csv_options["delimiter"] = delimiter
end

Given(/^I set quotechar to "(.*?)"$/) do |doublequote|
  @csv_options ||= default_csv_options
  @csv_options["quoteChar"] = doublequote
end

Given(/^I set the line endings to linefeed$/) do
  @csv_options ||= default_csv_options
  @csv_options["lineTerminator"] = "\n"
end

Given(/^I set header to "(.*?)"$/) do |boolean|
  @csv_options ||= default_csv_options
  @csv_options["header"] = boolean == "true"
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
csvlint-0.2.0 features/step_definitions/csv_options_steps.rb
csvlint-0.1.4 features/step_definitions/csv_options_steps.rb
csvlint-0.1.3 features/step_definitions/csv_options_steps.rb
csvlint-0.1.1 features/step_definitions/csv_options_steps.rb
csvlint-0.1.0 features/step_definitions/csv_options_steps.rb
csvlint-0.0.1 features/step_definitions/csv_options_steps.rb