Skip to content

Commit

Permalink
Merge pull request #50 from Schwad/master
Browse files Browse the repository at this point in the history
Ensures ActiveSupport is required
  • Loading branch information
rafaelfranca authored Mar 7, 2022
2 parents 7a904ed + 8c4e90e commit 0bfe378
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/deprecation_toolkit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ def self.attach_subscriber
end
end

unless defined?(RSpec)
require "deprecation_toolkit/minitest_hook"
end
require "deprecation_toolkit/minitest_hook" unless defined? RSpec
require "active_support"

require "deprecation_toolkit/warning"

0 comments on commit 0bfe378

Please sign in to comment.