spec/prepare.rb in fresh_connection-0.2.6 vs spec/prepare.rb in fresh_connection-0.3.0
- old
+ new
@@ -1,12 +1,8 @@
require 'yaml'
require 'active_record'
require 'fresh_connection'
-unless ActiveRecord::Base.respond_to?('establish_fresh_connection')
- FreshConnection::Initializer.extend_active_record
-end
-
system("mysql -uroot < spec/db_schema.sql")
module ActiveRecord
class Base
self.configurations = YAML.load_file(File.join(File.dirname(__FILE__), "database.yml"))