aboutsummaryrefslogblamecommitdiffstats
path: root/activesupport/lib/active_support/testing/mocha_module.rb
blob: ed2942d23a3fef39fcb0900b4bbcc35b91beb712 (plain) (tree)





















                                  
module ActiveSupport
  module Testing
    module MochaModule
      begin
        require 'mocha_standalone'
        include Mocha::API

        def before_setup
          mocha_setup
          super
        end

        def after_teardown
          super
          mocha_verify
          mocha_teardown
        end
      rescue LoadError
      end
    end
  end
end