-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade mocha to fix test failures against minitest 5.19 (#147)
This fixes the following test failure: > gems/mocha-1.16.1/lib/mocha/integration/mini_test/adapter.rb:26:in 'included': uninitialized constant MiniTest (NameError) Did you mean? Minitest
- Loading branch information
1 parent
dfedbe0
commit 68efb8a
Showing
3 changed files
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
require "mocha/minitest" | ||
|
||
Mocha::Configuration.warn_when(:stubbing_non_existent_method) | ||
Mocha::Configuration.warn_when(:stubbing_non_public_method) | ||
Mocha.configure do |c| | ||
c.stubbing_non_existent_method = :warn | ||
c.stubbing_non_public_method = :warn | ||
end |