mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
7 lines
No EOL
233 B
Ruby
7 lines
No EOL
233 B
Ruby
begin
|
|
silence_warnings { require 'mocha' }
|
|
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 |