Sha256: 88d2e208c183859e08e39d5abcee1b7860c50a34e3b08ac54c0c246635d21e7d

Contents?: true

Size: 483 Bytes

Versions: 2

Compression:

Stored size: 483 Bytes

Contents

# spec for row exclusion

require "spec_helper"

describe "exclude" do
  it "should be able to ignore rows with blank fields" do
    filename = File.dirname(__FILE__) + "/../data/exclude_input.csv"
    tmp = Tempfile.new('exclude')
    results = Masticate.exclude(filename, :output => tmp, :field => 'ID', :value => '')
    output = File.read(tmp)
    correct_output = File.read(File.dirname(__FILE__) + "/../data/exclude_results.csv")

    output.should == correct_output
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
masticate-0.2.3 spec/lib/exclude_spec.rb
masticate-0.2.2 spec/lib/exclude_spec.rb