提交 ec01cc45 编写于 作者: J Joshua Peek

For testing, only load rubygems if mocha is missing

上级 27458464
ORIG_ARGV = ARGV.dup
require 'rubygems'
require 'test/unit'
begin
require 'mocha'
rescue LoadError
$stderr.puts 'Loading rubygems'
require 'rubygems'
require 'mocha'
end
ENV['NO_RELOAD'] = '1'
$:.unshift "#{File.dirname(__FILE__)}/../lib"
require 'active_support'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册