Posted on 2010-02-17 20:01 
leekiang 阅读(454) 
评论(0)  编辑  收藏  所属分类: 
ruby 
			 
			
		 
		
		运行redmine的测试时报错
Missing these required gems:
  thoughtbot-shoulda  
  nofxx-object_daddy  
  mocha
在控制台里执行gem install mocha
              gem install shoulda
            和gem install object_daddy
到C:\ruby\lib\ruby\gems\1.8\gems下去看
发现多了object_daddy-0.4.1,shoulda-2.10.3和mocha-0.9.8这3个目录
再执行测试,不报缺少mocha了,但还报缺少另外两个jar
在http://www.redmine.org/boards/2/topics/11130找到了办法
rake gems:install RAILS_ENV=test
以下是在netbeans控制台里输出的信息
gem.bat install thoughtbot-shoulda --source http://gems.github.com
Successfully installed thoughtbot-shoulda-2.10.2
gem.bat install nofxx-object_daddy --source http://gems.github.com
Successfully installed nofxx-object_daddy-0.4.1
然后到C:\ruby\lib\ruby\gems\1.8\gems下去看,发现多了两个目录
nofxx-object_daddy-0.4.1和thoughtbot-shoulda-2.10.2,
奇怪的是与前面相比,目录名和大小都变了。