Sha256: 97c7942684f489494b13b8ecf3729337443d7b3351f45e33d1233b257be4b4d3

Contents?: true

Size: 616 Bytes

Versions: 15

Compression:

Stored size: 616 Bytes

Contents

# spec for file concatenation

require "spec_helper"

describe "concatenation" do
  it "should leave just one header row in the result" do
    file1 = File.dirname(__FILE__) + "/../data/tabbed_data.txt"
    file2 = File.dirname(__FILE__) + "/../data/pipe_data.txt"
    file3 = File.dirname(__FILE__) + "/../data/quoted_csv_data.txt"
    tmp = Tempfile.new('concat')
    results = Masticate.concat([file1, file2, file3], :output => tmp.path)
    output = File.read(tmp)
    tmp.unlink
    correct_output = File.read(File.dirname(__FILE__) + "/../data/concat_result.txt")
    output.should == correct_output
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
masticate-0.6.2 spec/lib/concat_spec.rb
masticate-0.6.1 spec/lib/concat_spec.rb
masticate-0.6.0 spec/lib/concat_spec.rb
masticate-0.5.1 spec/lib/concat_spec.rb
masticate-0.5.0 spec/lib/concat_spec.rb
masticate-0.4.2 spec/lib/concat_spec.rb
masticate-0.4.1 spec/lib/concat_spec.rb
masticate-0.4.0 spec/lib/concat_spec.rb
masticate-0.3.2 spec/lib/concat_spec.rb
masticate-0.3.1 spec/lib/concat_spec.rb
masticate-0.3 spec/lib/concat_spec.rb
masticate-0.2.3 spec/lib/concat_spec.rb
masticate-0.2.2 spec/lib/concat_spec.rb
masticate-0.2.1 spec/lib/concat_spec.rb
masticate-0.2 spec/lib/concat_spec.rb