spec/spec_helper.rb in rom-sql-1.3.5 vs spec/spec_helper.rb in rom-sql-2.0.0.beta1

- old
+ new

@@ -19,11 +19,11 @@ require 'logger' require 'tempfile' begin - require 'pry-byebug' + require ENV['DEBUGGER'] || 'byebug' rescue LoadError require 'pry' end LOGGER = Logger.new(File.open('./log/test.log', 'a')) @@ -57,14 +57,11 @@ SPEC_ROOT = root = Pathname(__FILE__).dirname TMP_PATH = root.join('../tmp') -class ROM::SQL::Schema::Inferrer - def self.on_error(*) - # quiet in specs - end -end +# quiet in specs +ROM::SQL::Relation.tap { |r| r.schema_inferrer(r.schema_inferrer.suppress_errors) } require 'dry/core/deprecations' Dry::Core::Deprecations.set_logger!(root.join('../log/deprecations.log')) ROM::SQL.load_extensions(:postgres, :sqlite)