Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial

Shreyash Agarwal
9,843 PointsCreate_rspec load error in Todo List
I am getting this error when I try to create the rspec file..
here is the console output-
shreyash@shreyash-g6:~/projects/odot/bin$ rspec spec/features/todo_lists/create_spec.rb
/home/shreyash/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:in load': cannot load such file -- /home/shreyash/projects/odot/bin/spec/features/todo_lists/create_spec.rb (LoadError)
from /home/shreyash/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:in
block in load_spec_files'
from /home/shreyash/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:in each'
from /home/shreyash/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:in
load_spec_files'
from /home/shreyash/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/rspec-core-2.99.2/lib/rspec/core/command_line.rb:18:in run'
from /home/shreyash/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/rspec-core-2.99.2/lib/rspec/core/runner.rb:103:in
run'
from /home/shreyash/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/rspec-core-2.99.2/lib/rspec/core/runner.rb:17:in `block in autorun'
james white
78,399 Pointsjames white
78,399 PointsI just had this thread pop up on my Treehouse notifications requesting an answer
(even though it is months old).
Since you didn't specify what you were running when the set of errors was generated there is too little information to answer you question directly but I'll provide a few links to look through:
https://teamtreehouse.com/community/28-failed-tests-rspec-kicking-back-errors
https://teamtreehouse.com/community/problem-with-rspec
http://stackoverflow.com/questions/25800122/error-when-trying-to-run-rspec-require-cannot-load-such-file-rails-helper
http://stackoverflow.com/questions/27310020/rails-console-require-cannot-load-such-file
http://stackoverflow.com/questions/26360657/many-require-cannot-load-such-file-gem-name-loaderror-after-upgrade-o
https://teamtreehouse.com/community/rspec-test-failure
http://stackoverflow.com/questions/19059669/rspec-loaderror
https://www.google.com/search?q=teamtreehouse+error+creating+rspec+site:teamtreehouse.com&safe=off&client=firefox-beta&rls=org.mozilla:en-US:official&channel=rcs&sa=X&ved=0CDoQrQIoAjADahUKEwiXtayNhKvHAhXDO4gKHU-EDBE&biw=1175&bih=785
http://stackoverflow.com/questions/tagged/rspec
https://www.relishapp.com/rspec/rspec-rails/docs/upgrade