Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Avoid deprecation warning in Mocha 0.13.0.

I'm not entirely sure why this code is duplicated from ActiveSupport,
but this deprecation warning has been fixed in 3-2-stable [1] and in
master [2].

[1] rails/rails#8200
[2] rails/rails#8180
  • Loading branch information...
commit b3aa6572da3489b381f9b95dfe1f3b9209d57f16 1 parent 91297fa
@floehopper floehopper authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/minitest/rails/mochaing.rb
View
2  lib/minitest/rails/mochaing.rb
@@ -2,7 +2,7 @@
require 'active_support/testing/mochaing'
rescue LoadError
begin
- silence_warnings { require 'mocha' }
+ silence_warnings { require 'mocha/setup' }
rescue LoadError
# Fake Mocha::ExpectationError so we can rescue it in #run. Bleh.
Object.const_set :Mocha, Module.new
Please sign in to comment.
Something went wrong with that request. Please try again.