mirror of
https://github.com/Fishwaldo/huginn.git
synced 2025-03-15 19:31:26 +00:00
Fix a test for escaped double-quotes for ruby >=2.4
This commit is contained in:
parent
d2d557dc7b
commit
98e80c57b0
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ describe Agents::CsvAgent do
|
|||
end
|
||||
|
||||
it "handles quotes correctly" do
|
||||
event = event_with_contents("\"one\",\"two\"\n1,2\n\"\"2, two\",3")
|
||||
event = event_with_contents("\"one\",\"two\"\n1,2\n\"\"\"2, two\",3")
|
||||
expect { @checker.receive([event]) }.to change(Event, :count).by(2)
|
||||
expect(Event.last.payload).to eq(@checker.options['data_key'] => {'one' => '"2, two', 'two' => '3'})
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue