spec/extensions/spec_helper.rb in sequel-3.44.0 vs spec/extensions/spec_helper.rb in sequel-3.45.0

- old
+ new

@@ -6,17 +6,23 @@ rescue LoadError nil end end +if ENV['COVERAGE'] + require File.join(File.dirname(File.expand_path(__FILE__)), "../sequel_coverage") + SimpleCov.sequel_coverage(:filter=>%r{lib/sequel/(extensions|plugins)/\w+\.rb\z}) +end + unless Object.const_defined?('Sequel') && Sequel.const_defined?('Model') $:.unshift(File.join(File.dirname(File.expand_path(__FILE__)), "../../lib/")) require 'sequel/no_core_ext' end begin - # Attempt to load ActiveSupport inflector first, so Sequel inflector - # can override it. + # Attempt to load ActiveSupport blank extension and inflector first, so Sequel + # can override them. + require 'active_support/core_ext/object/blank' require 'active_support/inflector' require 'active_support/core_ext/string/inflections' rescue LoadError nil end