Sha256: 2d9dffb3f23f8165a82e4805d90fd9329ef1515c581d67b9e459aec8454f9684

Contents?: true

Size: 691 Bytes

Versions: 17

Compression:

Stored size: 691 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 the line endings to carriage return$/) do
  @csv_options ||= default_csv_options
  @csv_options["lineTerminator"] = "\r"
end

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

Version data entries

17 entries across 17 versions & 3 rubygems

Version Path
csvlint-1.4.0 features/step_definitions/csv_options_steps.rb
csvlint-1.3.0 features/step_definitions/csv_options_steps.rb
csvlint-1.2.0 features/step_definitions/csv_options_steps.rb
csvlint-1.1.0 features/step_definitions/csv_options_steps.rb
csvlint-1.0.0 features/step_definitions/csv_options_steps.rb
csvlint-0.4.0 features/step_definitions/csv_options_steps.rb
csvlint-0.3.3 features/step_definitions/csv_options_steps.rb
csvlint-0.3.2 features/step_definitions/csv_options_steps.rb
csvlint-0.3.1 features/step_definitions/csv_options_steps.rb
csvlint-0.3.0 features/step_definitions/csv_options_steps.rb
wjordan213-csvlint-0.2.8 features/step_definitions/csv_options_steps.rb
wjordan213.csvlint-0.2.8 features/step_definitions/csv_options_steps.rb
csvlint-0.2.6 features/step_definitions/csv_options_steps.rb
csvlint-0.2.5 features/step_definitions/csv_options_steps.rb
csvlint-0.2.4 features/step_definitions/csv_options_steps.rb
csvlint-0.2.2 features/step_definitions/csv_options_steps.rb
csvlint-0.2.1 features/step_definitions/csv_options_steps.rb