Skip to content

Commit

Permalink
Deprecate requiring 'mocha/setup'
Browse files Browse the repository at this point in the history
By forcing people to require the explicit integrations for Test::Unit or
Minitest, we will be able to provide more useful feedback if the
integration fails for some reason.

Note that requiring 'mocha/setup' was removed from the README in the
v1.0.0 release [1].

[1]: 1d6b08f
  • Loading branch information
floehopper committed Nov 3, 2019
1 parent f04d437 commit 36adf88
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/mocha/setup.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
require 'mocha/integration'
require 'mocha/deprecation'

Mocha::Deprecation.warning(
"Use `require 'mocha/test_unit'` or `require 'mocha/minitest'` instead."
)

module Mocha
def self.activate
Expand Down

0 comments on commit 36adf88

Please sign in to comment.