spec/spec_helper.rb in ajax-datatables-rails-0.2.1 vs spec/spec_helper.rb in ajax-datatables-rails-0.3.0
- old
+ new
@@ -1,3 +1,9 @@
require 'pry'
require 'rails'
+require 'active_record'
require 'ajax-datatables-rails'
+
+ActiveRecord::Base.establish_connection adapter: "sqlite3", database: ":memory:"
+
+load File.dirname(__FILE__) + '/schema.rb'
+require File.dirname(__FILE__) + '/test_models.rb'