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 trialAndreas Daiminger
Courses Plus Student 406 Pointserror when running bin/rspec spec/features/todo_lists/create_spec.rb
Why do I get this error message?
adai183 (master *) odot $ bin/rspec spec/features/todo_lists/create_spec.rb
/Users/adai183/treehouse/projects/odot/spec/features/todo_lists/create_spec.rb:1:in require': cannot load such file -- spec helper (LoadError)
from /Users/adai183/treehouse/projects/odot/spec/features/todo_lists/create_spec.rb:1:in
<top (required)>'
from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:in load'
from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:in
block in load_spec_files'
from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:in each'
from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:in
load_spec_files'
from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/rspec-core-2.99.2/lib/rspec/core/command_line.rb:18:in run'
from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/rspec-core-2.99.2/lib/rspec/core/runner.rb:103:in
run'
from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/rspec-core-2.99.2/lib/rspec/core/runner.rb:17:in `block in autorun'
2 Answers
Seth Reece
32,867 PointsHi Andreas,
Your error says create_spec.rb couldn't find 'spec helper'. It looks like you are missing an underscore in the file name. Should be
require 'spec_helper'
Andreas Daiminger
Courses Plus Student 406 PointsThanx! That did the job!!