Answer the question
In order to leave comments, you need to log in
Problem with rspec. What to do?
Hello!
Today I downloaded the latest version of rspec and started doing assignments at testfirst.org/learn_ruby . I wrote in the terminal rake
and here comes the error:
/home/xinon/.rbenv/versions/2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- temperature (LoadError)
from /home/xinon/.rbenv/versions/2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /home/xinon/Рабочий стол/Projects/Ruby Project 1/learn_ruby/01_temperature/temperature_spec.rb:1:in `<top (required)>'
from /home/xinon/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/configuration.rb:1327:in `load'
from /home/xinon/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/configuration.rb:1327:in `block in load_spec_files'
from /home/xinon/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/configuration.rb:1325:in `each'
from /home/xinon/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/configuration.rb:1325:in `load_spec_files'
from /home/xinon/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:102:in `setup'
from /home/xinon/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:88:in `run'
from /home/xinon/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:73:in `run'
from /home/xinon/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/lib/rspec/core/runner.rb:41:in `invoke'
from /home/xinon/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-3.3.2/exe/rspec:4:in `<top (required)>'
from /home/xinon/.rbenv/versions/2.2.3/bin/rspec:23:in `load'
from /home/xinon/.rbenv/versions/2.2.3/bin/rspec:23:in `<main>'
Answer the question
In order to leave comments, you need to log in
Learning to code through testing without knowing how to code is a sure way to rack up some bumps and get the most unpleasant experience from the technology you're learning. I recommend refusing to test for now and learn the basics without it. Too early.
require fails to load the 'temperature.rb' file for some reason. Look in your code for require 'temperature' and see what the reason is.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question