aboutsummaryrefslogblamecommitdiffstats
path: root/activesupport/lib/active_support/testing/mochaing.rb
blob: ae4e7e9a1f6b330e1b4c43b0a9f4da3adbd83f2a (plain) (tree)
1
2
3
4
5
6
7
     
                                            



                                                                   
   
begin
  silence_warnings { require 'mocha/setup' }
rescue LoadError
  # Fake Mocha::ExpectationError so we can rescue it in #run. Bleh.
  Object.const_set :Mocha, Module.new
  Mocha.const_set :ExpectationError, Class.new(StandardError)
end