diff --git a/.rspec b/.rspec index 8c18f1a..34c5164 100644 --- a/.rspec +++ b/.rspec @@ -1,2 +1,3 @@ --format documentation --color +--require spec_helper diff --git a/spec/lograge/sql_spec.rb b/spec/lograge/sql_spec.rb index 6e6805d..6d38cf7 100644 --- a/spec/lograge/sql_spec.rb +++ b/spec/lograge/sql_spec.rb @@ -1,8 +1,6 @@ # frozen_string_literal: true -require 'spec_helper' - -describe Lograge::Sql do +RSpec.describe Lograge::Sql do let(:subscriber) do if defined?(Lograge::RequestLogSubscriber) Lograge::RequestLogSubscriber diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index e23a887..436b170 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -7,3 +7,7 @@ require 'delegate' require 'lograge' require 'lograge/sql' + +RSpec.configure do |config| # rubocop:disable Style/SymbolProc + config.disable_monkey_patching! +end