Skip to content

Commit

Permalink
Fix deprecation warnings added in #389
Browse files Browse the repository at this point in the history
These were not namespaced and it turns out they aren't actually tested
in the build.
  • Loading branch information
floehopper committed Nov 3, 2019
1 parent 9020248 commit 2406544
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/mocha/minitest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
require 'mocha/deprecation'

unless Mocha::Integration::MiniTest.activate
Deprecation.warning("MiniTest must be loaded *before* `require 'mocha/minitest'`.")
Mocha::Deprecation.warning(
"MiniTest must be loaded *before* `require 'mocha/minitest'`."
)
end
4 changes: 3 additions & 1 deletion lib/mocha/test_unit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
require 'mocha/deprecation'

unless Mocha::Integration::TestUnit.activate
Deprecation.warning("Test::Unit must be loaded *before* `require 'mocha/test_unit'`.")
Mocha::Deprecation.warning(
"Test::Unit must be loaded *before* `require 'mocha/test_unit'`."
)
end

0 comments on commit 2406544

Please sign in to comment.