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