spec/spec_helper.rb in hash_serializer-0.1.1 vs spec/spec_helper.rb in hash_serializer-0.2.0

- old
+ new

@@ -1,6 +1,7 @@ require 'simplecov' +require 'active_record' SimpleCov.start SimpleCov.minimum_coverage 99 SimpleCov.formatter = SimpleCov::Formatter::HTMLFormatter @@ -9,5 +10,12 @@ CodeClimate::TestReporter.start end $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require 'hash_serializer' + +ActiveRecord::Base.establish_connection(adapter: 'sqlite3', + database: ':memory:', + schema: 'spec/db/schema.rb') + +load 'db/schema.rb' +require 'db/models.rb'