Check for mocha gem without requiring the lib. [#403 state:resolved]

This commit is contained in:
Jeremy Kemper 2008-06-22 20:52:29 -07:00
parent baddea95e1
commit 4d5ac3f3d2

@ -18,9 +18,9 @@ def self.included(base)
alias_method :run, :run_with_callbacks_and_miniunit
else
begin
require 'mocha'
gem 'mocha'
alias_method :run, :run_with_callbacks_and_mocha
rescue LoadError
rescue Gem::LoadError
alias_method :run, :run_with_callbacks_and_testunit
end
end