Permalink
Browse files

Undefine old run method

  • Loading branch information...
1 parent f205939 commit d84d99a8f7dc672b050a6ab891c1680a323a7c97 @josh josh committed Jul 19, 2008
Showing with 3 additions and 0 deletions.
  1. +3 −0 activesupport/lib/active_support/testing/setup_and_teardown.rb
@@ -15,12 +15,15 @@ def self.included(base)
define_callbacks :setup, :teardown
if defined?(::Mini)
+ undef_method :run
alias_method :run, :run_with_callbacks_and_miniunit
else
begin
require 'mocha'
+ undef_method :run
alias_method :run, :run_with_callbacks_and_mocha
rescue LoadError
+ undef_method :run
alias_method :run, :run_with_callbacks_and_testunit
end
end

0 comments on commit d84d99a

Please sign in to comment.