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

Shawn Wilson
seal-mask
.a{fill-rule:evenodd;}techdegree
Shawn Wilson
iOS Development Techdegree Student 7,049 Points

Command Start Load Error way past my understanding internet search on issue not helpful

So i have now created a model and successfully migrated it. created a test based off the video that should work. when i try to run the test i get this from the command prompt:

Shawns-MacBook-Pro:ToDo TaurenLTD1$ bin/rspec spec/models/toto_item_spec.rb /Users/TaurenLTD1/.rvm/gems/ruby-2.2.0/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:in load': cannot load such file -- /Users/TaurenLTD1/Desktop/projects/sample/ToDo/spec/models/toto_item_spec.rb (LoadError) from /Users/TaurenLTD1/.rvm/gems/ruby-2.2.0/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:inblock in load_spec_files' from /Users/TaurenLTD1/.rvm/gems/ruby-2.2.0/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:in each' from /Users/TaurenLTD1/.rvm/gems/ruby-2.2.0/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:inload_spec_files' from /Users/TaurenLTD1/.rvm/gems/ruby-2.2.0/gems/rspec-core-2.99.2/lib/rspec/core/command_line.rb:18:in run' from /Users/TaurenLTD1/.rvm/gems/ruby-2.2.0/gems/rspec-core-2.99.2/lib/rspec/core/runner.rb:103:inrun' from /Users/TaurenLTD1/.rvm/gems/ruby-2.2.0/gems/rspec-core-2.99.2/lib/rspec/core/runner.rb:17:in `block in autorun'

so this is alien to me as i have never changed a file like this. what kind of impact could this have and to be honest i have no idea what to change these lines to... could this be a version compatibility issue? or is this something that is common? i have googled my finger tips off trying to find anything on this error and not sure how to proceed in handling this as i dont want to blow my system up hahaha. any help or comments appreciated here.

2 Answers

Brandon Barrette
Brandon Barrette
20,485 Points

Looks like it's spelled wrong:

bin/rspec spec/models/toto_item_spec.rb 

Should be todo_item_spec.rb (not toto)

bin/rspec spec/models/todo_item_spec.rb
Shawn Wilson
seal-mask
.a{fill-rule:evenodd;}techdegree
Shawn Wilson
iOS Development Techdegree Student 7,049 Points

Oh wow, I looked at that line for like 2 hours trying to figure it out. I guess it's time to step away thank you so much. My apologies for this idiocy.

Brandon Barrette
Brandon Barrette
20,485 Points

No problem at all. I've done this many times before myself.