Flowdock
method

included

Importance_0
v2.1.0 - Show latest stable - 0 notes - Class: ActiveSupport::Testing
included(base) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/testing/setup_and_teardown.rb, line 12
      def self.included(base)
        base.send :include, ActiveSupport::Callbacks
        base.define_callbacks :setup, :teardown

        begin
          require 'mocha'
          base.alias_method_chain :run, :callbacks_and_mocha
        rescue LoadError
          base.alias_method_chain :run, :callbacks
        end
      end
Register or log in to add new notes.