我正在尝试运行使用rspec的基本启动器示例:
http://rspec.info/.
当我在命令提示符下键入时
ruby bowling_spec.rb
我收到以下错误
测试
# bowling_spec.rb require 'bowling' describe Bowling,"#score" do it "returns 0 for all gutter game" do bowling = Bowling.new 20.times { bowling.hit(0) } bowling.score.should == 0 end end
码
# bowling.rb class Bowling def hit(pins) end def score 0 end end
错误信息
internal:lib/rubygems/custom_require:29:in
require': no such file to load --
require’
bowling (LoadError)
from <internal:lib/rubygems/custom_require>:29:in
from bowling_spec.rb:2:in `’