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

Ruby

James White
James White
6,159 Points

Running test from Rails todo app: `require': cannot load such file -- rspect/autorun (LoadError)

I'm getting this error when I run bin/rake spec. A little lost as to how to fix it.

3 Answers

Kyle Daugherty
Kyle Daugherty
16,441 Points

Looks like you have typo. Try require 'rspec/autorun' instead of require 'rspect/autorun'

James White
James White
6,159 Points

Where is that coming from? At the command line I'm typing: bin/rake spec which is what the video said to type in.

http://teamtreehouse.com/library/build-a-todo-list-application-with-rails-4/build-a-todo-list-application-with-rails-4/write-our-first-tests

Kyle Daugherty
Kyle Daugherty
16,441 Points

Check your spec_helper.rb file

James White
James White
6,159 Points

Nevermind I got it. The typo was in spec_helper.rb.