spec/extensions/spec_helper.rb in sequel-3.0.0 vs spec/extensions/spec_helper.rb in sequel-3.1.0
- old
+ new
@@ -6,16 +6,11 @@
unless Sequel.const_defined?('Model')
$:.unshift(File.join(File.dirname(__FILE__), "../../lib/"))
require 'sequel/model'
end
-Sequel.virtual_row_instance_eval = true
-
-extensions = %w'string_date_time inflector pagination query pretty_table blank migration schema_dumper'
-plugins = {:hook_class_methods=>[], :schema=>[], :validation_class_methods=>[]}
-
-extensions.each{|e| require "sequel/extensions/#{e}"}
-plugins.each{|p, opts| Sequel::Model.plugin(p, *opts)}
+Sequel.extension(*%w'string_date_time inflector pagination query pretty_table blank migration schema_dumper')
+{:hook_class_methods=>[], :schema=>[], :validation_class_methods=>[]}.each{|p, opts| Sequel::Model.plugin(p, *opts)}
class MockDataset < Sequel::Dataset
def insert(*args)
@db.execute insert_sql(*args)
end