require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe "SmartCsv" do it "should create a csv for array items" do 3.times {Factory.create(:book)} Book.all.to_csv.should_not be_nil end end