From 8c2620cba643b9c712e47d3e308f087eea86f8be Mon Sep 17 00:00:00 2001 From: Phil Pirozhkov Date: Tue, 26 May 2020 23:40:28 +0300 Subject: [PATCH] Remove redundant check TimeHelpers are there starting from 4.2 at least. --- spec/rspec/rails/matchers/active_job_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/rspec/rails/matchers/active_job_spec.rb b/spec/rspec/rails/matchers/active_job_spec.rb index 2abb8fcf91..1a15b5cf1a 100644 --- a/spec/rspec/rails/matchers/active_job_spec.rb +++ b/spec/rspec/rails/matchers/active_job_spec.rb @@ -33,7 +33,7 @@ def self.find(_id) end RSpec.describe "ActiveJob matchers", skip: !RSpec::Rails::FeatureCheck.has_active_job? do - include ActiveSupport::Testing::TimeHelpers if defined?(ActiveSupport::Testing::TimeHelpers) + include ActiveSupport::Testing::TimeHelpers around do |example| original_logger = ActiveJob::Base.logger