Sha256: e88606ada196a091c7db83d667f558d21c678eaf77555e8138a8eeb1cad542a7

Contents?: true

Size: 494 Bytes

Versions: 15

Compression:

Stored size: 494 Bytes

Contents

# spec for file concatenation

require "spec_helper"

describe "relabeling" do
  it "result should be same as original" do
    input = File.dirname(__FILE__) + "/../data/namedcols.csv"
    tmp = Tempfile.new('relabel')
    results = Masticate.relabel(input, :fields => %w{happy birth day to you}, :output => tmp.path)
    output = File.read(tmp)
    tmp.unlink
    correct_output = File.read(File.dirname(__FILE__) + "/../data/relabel_result.csv")
    output.should == correct_output
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

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