-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from aki77/0.8.0
0.8.0
- Loading branch information
Showing
7 changed files
with
15 additions
and
11 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module Csb | ||
VERSION = '0.7.0' | ||
VERSION = '0.8.0' | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
context 'Streaming' do | ||
subject(:enum) { template.build } | ||
|
||
let(:template) { Csb::Template.new(streaming: true, utf8_bom: false) } | ||
let(:template) { Csb::Template.new(streaming: true, utf8_bom: false, csv_options: {}) } | ||
|
||
it 'Is a Enumerator' do | ||
expect(enum).to be_a Enumerator | ||
|
@@ -29,19 +29,15 @@ | |
context 'Not streaming' do | ||
subject { template.build } | ||
|
||
let(:template) { Csb::Template.new(streaming: false, utf8_bom: false) } | ||
let(:template) { Csb::Template.new(streaming: false, utf8_bom: false, csv_options: {}) } | ||
|
||
it { is_expected.to eq "Name,Email,Dummy\ntester1,[email protected],\ntester2,[email protected],\n" } | ||
end | ||
|
||
context 'with csv_options' do | ||
subject { template.build } | ||
|
||
let(:template) { Csb::Template.new(streaming: false, utf8_bom: false) } | ||
|
||
before do | ||
template.csv_options = { row_sep: "\r\n" } | ||
end | ||
let(:template) { Csb::Template.new(streaming: false, utf8_bom: false, csv_options: { row_sep: "\r\n" }) } | ||
|
||
it { is_expected.to eq "Name,Email,Dummy\r\ntester1,[email protected],\r\ntester2,[email protected],\r\n" } | ||
end | ||
|