spec/spec_helper.rb in nofxx-money-2.3.1 vs spec/spec_helper.rb in nofxx-money-2.3.2
- old
+ new
@@ -12,9 +12,8 @@
config = YAML.load_file(File.dirname(__FILE__) + '/db/database.yml')
ActiveRecord::Base.logger = Logger.new("/tmp/money-debug.log")
ActiveRecord::Base.establish_connection(config)
+db_file = File.exists?(File.dirname(__FILE__) + '/../tmp/acts_as_money.sqlite3')
+load(File.dirname(__FILE__) + "/db/schema.rb") unless db_file
-def load_schema
- load(File.dirname(__FILE__) + "/db/schema.rb")
-end