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

rspec test not working

Even tried using the full path:

C:\Users\Andrew\rubyapps\odot\bin [master +1 ~0 -0 !]> rspec c:\Users\Amdrew\rubyapps\odot\spec\features\todo_lists\crea
te_spec.rb
D:/Application/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:in `load': cannot
 load such file -- c:/Users/Amdrew/rubyapps/odot/spec/features/todo_lists/create_spec.rb (LoadError)
        from D:/Application/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:in `
block in load_spec_files'
        from D:/Application/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:in `
each'
        from D:/Application/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:in `
load_spec_files'
        from D:/Application/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/command_line.rb:18:in `run
'
        from D:/Application/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/runner.rb:103:in `run'
        from D:/Application/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-2.99.2/lib/rspec/core/runner.rb:17:in `block in
autorun'

1 Answer

Kyle Daugherty
Kyle Daugherty
16,441 Points

Hey Andrew, it looks like you misspelled your name when trying the full path (Amdrew instead of Andrew). Also, it looks like you were trying to run the specs from the wrong directory. You were in the bin directory. Try running it from the main odot directory instead when you don't want to provide the full path.

Hope this helps. Cheers!