spec/spec_helper.rb in counterfeit-0.0.1 vs spec/spec_helper.rb in counterfeit-0.0.2
- old
+ new
@@ -21,10 +21,10 @@
Bundler.require
require File.expand_path('../../lib/counterfeit', __FILE__)
db_filename = 'counterfeit.sqlite3'
-File.delete(db_filename)
+File.delete(db_filename) if File.exists?(db_filename)
active_record_configuration = { :adapter => 'sqlite3', :database => db_filename }
ActiveRecord::Base.establish_connection(active_record_configuration)
ActiveRecord::Base.logger = Logger.new(File.join(File.dirname(__FILE__), "debug.log"))
\ No newline at end of file