Skip to content
Browse files

Avoid a Mocha deprecation warning.

  • Loading branch information...
1 parent 5573c1d commit 3791cac8747b5e36fe9619301a55d69f8feff982 @floehopper floehopper committed Nov 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/testing/mochaing.rb
View
2 activesupport/lib/active_support/testing/mochaing.rb
@@ -1,5 +1,5 @@
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

0 comments on commit 3791cac

Please sign in to comment.
Something went wrong with that request. Please try again.