Check for mocha gem without requiring the lib. [#403 state:resolved]
This commit is contained in:
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
|
||||
|
Loading…
Reference in New Issue
Block a user