require 'rubygems' require "ruby-debug" require "active_record" require 'factory_girl' require 'spec' $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'smart_csv' Spec::Runner.configure do |config| end ActiveRecord::Schema.verbose = false ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :dbfile => ":memory:") ActiveRecord::Base.configurations = true ActiveRecord::Schema.define(:version => 1) do create_table :books do |t| t.string :name t.string :description t.datetime :created_at t.datetime :updated_at end end require File.dirname(__FILE__) + '/libs/book'