method

method_added

rails latest stable - Class: ActionController::TestCase

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.0.3) is shown here.

method_added(method)
public

No documentation available.

# File actionpack/lib/action_controller/test_case.rb, line 60
    def self.method_added(method)
      if method.to_s == 'setup'
        unless method_defined?(:setup_without_controller)
          alias_method :setup_without_controller, :setup
          define_method(:setup) do
            setup_with_fixtures if respond_to?(:setup_with_fixtures)
            setup_with_controller
            setup_without_controller
          end
        end
      end
    end