-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change the library to use \r\n as default line-ending. Keep \n as def…
…ault in development by supplying default options
- Loading branch information
Showing
7 changed files
with
24 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
Given(/^I set the delimiter to "(.*?)"$/) do |delimiter| | ||
@csv_options ||= {} | ||
@csv_options ||= default_csv_options | ||
@csv_options["delimiter"] = delimiter | ||
end | ||
|
||
Given(/^I set quotechar to "(.*?)"$/) do |doublequote| | ||
@csv_options ||= {} | ||
@csv_options ||= default_csv_options | ||
@csv_options["quotechar"] = doublequote | ||
end | ||
|
||
Given(/^I set the line endings to windows$/) do | ||
@csv_options ||= {} | ||
@csv_options ||= default_csv_options | ||
@csv_options["lineterminator"] = "\r\n" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters