I'm trying to run the basic starter example for using rspec found here: http://rspec.info/.
When I type in the command prompt
ruby bowling_spec.rb
I get the following error
Test
# 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
Code
# bowling.rb
class Bowling
def hit(pins)
end
def score
0
end
end
Error Message
internal:lib/rubygems/custom_require:29:in
require': no such file to load -- bowling (LoadError) from <internal:lib/rubygems/custom_require>:29:in
require' from bowling_spec.rb:2:in `'