spec/spec_helper.rb in selections-0.2.2 vs spec/spec_helper.rb in selections-1.0.0
- old
+ new
@@ -1,8 +1,13 @@
require 'selections'
require "nokogiri"
require 'active_record/fixtures'
+if ActiveRecord::VERSION::MAJOR == 3
+ # Rails 3 has some big warning that prints out if this is not there, but this will break Rails 4. :(
+ require 'minitest'
+end
+
ActiveRecord::Base.establish_connection adapter: "sqlite3", database: ":memory:"
ActiveRecord::Migration.create_table :selections do |t|
t.string :name
t.string :system_code
t.integer :parent_id