X
X
xinon2015-08-28 22:41:51
linux
xinon, 2015-08-28 22:41:51

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 rakeand 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>'

I'm still generally noob in ruby, so please help)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
Eugene Burmakin, 2015-08-29
@xinon

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.

T
ttyigor, 2015-08-28
@ttyigor

require fails to load the 'temperature.rb' file for some reason. Look in your code for require 'temperature' and see what the reason is.

V
vsuhachev, 2015-08-29
@vsuhachev

Go through the zero task to start, there you will understand what you need to do next

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question