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 trialSidney Eubanks
3,864 Pointsspec issuse HELP!?!?!?!?!?!
This is my error... anyone?
Also for some reason my spec-file directory doesn't have the model folder in it, or any other folder for that matter. the only one it has is [features]. Instead I have a structure more like this(which his is different in the tutorial):
[spec] [test] ...(inside test)>[controllers] ...(inside test)>[fixtures] ...(inside test)>[helpers] ...(inside test)>[mailers] ...(inside test)>[models] ......(inside test/models)>todo_items_test.rb ......(inside test/models)>todo_list_test.rb [tmp] [vendor] ...
MacBook-Pro-2:odot macbookpro$ bin/rspec spec/models/todo_item_test.rb
/Users/macbookpro/Developer/Rails/odot/spec/models/todo_item_test.rb:1:in require': cannot load such file -- test_helper (LoadError)
from /Users/macbookpro/Developer/Rails/odot/spec/models/todo_item_test.rb:1:in
<top (required)>'
from /Users/macbookpro/.rvm/gems/ruby-2.1.1/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:in load'
from /Users/macbookpro/.rvm/gems/ruby-2.1.1/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:in
block in load_spec_files'
from /Users/macbookpro/.rvm/gems/ruby-2.1.1/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:in each'
from /Users/macbookpro/.rvm/gems/ruby-2.1.1/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:in
load_spec_files'
from /Users/macbookpro/.rvm/gems/ruby-2.1.1/gems/rspec-core-2.99.2/lib/rspec/core/command_line.rb:18:in run'
from /Users/macbookpro/.rvm/gems/ruby-2.1.1/gems/rspec-core-2.99.2/lib/rspec/core/runner.rb:103:in
run'
from /Users/macbookpro/.rvm/gems/ruby-2.1.1/gems/rspec-core-2.99.2/lib/rspec/core/runner.rb:17:in `block in autorun'