Sha256: da757a894afbf8ed6d08172f404d2aa400253677f68b69ad8bdbfb5f217670c4

Contents?: true

Size: 450 Bytes

Versions: 1

Compression:

Stored size: 450 Bytes

Contents

require 'test_helper'

module CrazyImporter
  extend SimpleImporter
end

context "CrazyImporter" do
  specify "should parse a comma separated file" do
    CrazyImporter.csv(File.join(File.dirname(__FILE__), 'csv.txt')) do |row|
      row.length.should.equal 3
    end
  end
  specify "should parse a tab separated file" do
    CrazyImporter.tsv(File.join(File.dirname(__FILE__), 'tab.txt')) do |row|
      row.length.should.equal 4
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gotascii-simple_importer-1.0.0 test/test_simple_importer.rb