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 Build a Todo List Application with Rails 4 Build a Todo List Application with Rails 4 Write Our First Tests

Geremiah Holbrook
Geremiah Holbrook
11,488 Points

Load Error

C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rspec-core-2.99.2/lib/rspec/core/configur ation.rb:1065:in `load': cannot load such file -- C:/Projects/odot/bin/spec/feat ures/todo_lists/create_spec.rb (LoadError)

I get this error when trying to run the rspec test from my bin directory. Do I need to add a path? If so, how do I do that?

1 Answer

Seth Reece
Seth Reece
32,867 Points

Hi Geremiah,

Don't use your bin directory in the file path. Use: bin/rspec spec/features/todo_lists/create_spec.rb

Geremiah Holbrook
Geremiah Holbrook
11,488 Points

UPDATE: C:\Projects\odot>bundle exec rspec spec\features\todo_lists\create_spec.rb I was able to run the test with this command. It failed :( lol

Thank you for your response, Seth. I would have tried your suggestion earlier, but I was expecting an email notification for any response. Anyway, this is the response I get back when I try that input:

C:\Projects\odot>bin/rspec spec/features/todo_lists/create_spec.rb 'bin' is not recognized as an internal or external command, operable program or batch file.