spec/spec_helper.rb in nilify_blanks-1.0.3 vs spec/spec_helper.rb in nilify_blanks-1.1.0
- old
+ new
@@ -1,8 +1,9 @@
require "rubygems"
require "rspec"
require "active_support"
require "active_record"
+require "yaml"
# Establish DB Connection
config = YAML::load(IO.read(File.join(File.dirname(__FILE__), 'db', 'database.yml')))
ActiveRecord::Base.configurations = {'test' => config[ENV['DB'] || 'sqlite3']}
ActiveRecord::Base.establish_connection(ActiveRecord::Base.configurations['test'])