aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/testing
diff options
context:
space:
mode:
authorJames Mead <james@floehopper.org>2012-11-03 17:53:35 +0000
committerJames Mead <james@floehopper.org>2012-11-13 08:25:14 +0000
commit3791cac8747b5e36fe9619301a55d69f8feff982 (patch)
tree242718714720b5201abec9a653b84ca742dbfc34 /activesupport/lib/active_support/testing
parent5573c1d29565f17aca48b6a320a676bf9f962f20 (diff)
downloadrails-3791cac8747b5e36fe9619301a55d69f8feff982.tar.gz
rails-3791cac8747b5e36fe9619301a55d69f8feff982.tar.bz2
rails-3791cac8747b5e36fe9619301a55d69f8feff982.zip
Avoid a Mocha deprecation warning.
Diffstat (limited to 'activesupport/lib/active_support/testing')
-rw-r--r--activesupport/lib/active_support/testing/mochaing.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/testing/mochaing.rb b/activesupport/lib/active_support/testing/mochaing.rb
index 4ad75a6681..0161476d79 100644
--- a/activesupport/lib/active_support/testing/mochaing.rb
+++ b/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