Sha256: 6557231d8a3a474f6a3142d8dad2f0df94241817d4285f2004036392ff43b824

Contents?: true

Size: 233 Bytes

Versions: 227

Compression:

Stored size: 233 Bytes

Contents

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

Version data entries

227 entries across 191 versions & 20 rubygems

Version Path
activesupport-3.1.0.rc6 lib/active_support/testing/mochaing.rb
activesupport-3.1.0.rc5 lib/active_support/testing/mochaing.rb
activesupport-3.1.0.rc4 lib/active_support/testing/mochaing.rb
activesupport-3.1.0.rc3 lib/active_support/testing/mochaing.rb
activesupport-3.1.0.rc2 lib/active_support/testing/mochaing.rb
activesupport-3.1.0.rc1 lib/active_support/testing/mochaing.rb
activesupport-3.1.0.beta1 lib/active_support/testing/mochaing.rb