我遇到了一个恼人的问题,rspec gem安装在我的机器上,但当我需要它时,我会得到一个"没有这样的文件要加载"错误。跟踪如下所示。这个问题似乎也在极少数情况下消失,不久后又回来了。如有任何帮助,我们将不胜感激。我正在使用IronRuby,但Ruby中似乎也发生了同样的情况。
C:UsersMicalM02>igem list
*** LOCAL GEMS ***
builder (3.0.0)
ci_reporter (1.7.0)
cucumber (0.6.3)
diff-lcs (1.1.3)
iron-term-ansicolor (0.0.3)
json_pure (1.7.3)
polyglot (0.3.3)
rake (0.9.2.2)
rspec (2.11.0)
rspec-core (2.11.0)
rspec-expectations (2.11.1)
rspec-mocks (2.11.1)
term-ansicolor (1.0.7)
treetop (1.4.10)
C:UsersMicalM02>ir
IronRuby 1.1.3.0 on .NET 4.0.30319.269
Copyright (c) Microsoft Corporation. All rights reserved.
>>> require "rubygems"
=> true
>>> require "spec/expectations"
d:/Program Files (x86)/IronRuby 1.1/Lib/ruby/1.9.1/rubygems/custom_require.rb:29
:in `require': no such file to load -- spec/expectations (LoadError)
from d:/Program Files (x86)/IronRuby 1.1/Lib/ruby/1.9.1/rubygems/custom_
require.rb:29:in `require'
from (ir):1
>>>
它是:要求"rspec/期望值"
您缺少一个"r"