Sha256: 7ed66806c5c5cca7b1e67cd07bae8ca012a1aa7e5aedbe3bd9ef892dc5b5566e

Contents?: true

Size: 393 Bytes

Versions: 4

Compression:

Stored size: 393 Bytes

Contents

require 'spec_helper'
module Alf
  module Support
    describe CSVUtils::ProcIO do
      include CSVUtils

      it 'works as expected' do
        @seen = nil
        proc_io = CSVUtils::ProcIO.new{|str| @seen = str}
        with_csv(proc_io, row_sep: "\n") do |csv|
          csv << ["Smith", 20, "London"]
        end
        @seen.should eq("Smith,20,London\n")
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alf-core-0.15.0 spec/unit/alf-io/support/test_proc_io.rb
alf-core-0.14.0 spec/unit/alf-io/support/test_proc_io.rb
alf-core-0.13.1 spec/unit/alf-io/support/test_proc_io.rb
alf-core-0.13.0 spec/unit/alf-io/support/test_proc_io.rb