Skip to content

Instantly share code, notes, and snippets.

@lgrains
Created January 30, 2014 17:41
Show Gist options
  • Save lgrains/8714243 to your computer and use it in GitHub Desktop.
Save lgrains/8714243 to your computer and use it in GitHub Desktop.
require 'spec_helper.rb'
require 'lib/sf_to_coll/convert.rb'
require 'rake'
describe SfToColl::Convert do
context "main file for single record should be 2186 chars long" do
Rake::Task["import_field_data"].invoke
let(:converter){ SfToColl::Convert.new("tmp/ctbrown.csv").process }
let(:out_file_name){ converter.out_file_name }
subject { File.stat("#{out_file_name}_main").size }
it {should == 2186}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment