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

Grant Iverson
Grant Iverson
3,520 Points

Entering "bin/rake spec" results in "failed"

I am stuck and cannot move past this video. Please help!

When I entered "bin/rake spec" into the command terminal, this was the result:

/Users/Iverson/.rbenv/versions/2.2.2/bin/ruby -S rspec ./spec/controllers/todo_lists_controller_spec.rb ./spec/features/todo_lists/create_spec.rb ./spec/helpers/todo_lists_helper_spec.rb ./spec/models/todo_list_spec.rb ./spec/requests/todo_lists_spec.rb ./spec/routing/todo_lists_routing_spec.rb ./spec/views/todo_lists/edit.html.erb_spec.rb ./spec/views/todo_lists/index.html.erb_spec.rb ./spec/views/todo_lists/new.html.erb_spec.rb ./spec/views/todo_lists/show.html.erb_spec.rb /Users/Iverson/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.2/lib/abstract_controller/helpers.rb:151:in rescue in block in modules_for_helpers': Missing helper file helpers//users/iverson/dropbox/code/treehouse/ruby/odot/app/helpers/application_helper.rb_helper.rb (AbstractController::Helpers::MissingHelperError) from /Users/Iverson/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.2/lib/abstract_controller/helpers.rb:148:inblock in modules_for_helpers' from /Users/Iverson/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.2/lib/abstract_controller/helpers.rb:144:in map!' from /Users/Iverson/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.2/lib/abstract_controller/helpers.rb:144:inmodules_for_helpers' from /Users/Iverson/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.2/lib/action_controller/metal/helpers.rb:93:in modules_for_helpers' from /Users/Iverson/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.2/lib/abstract_controller/helpers.rb:108:inhelper' from /Users/Iverson/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.2/lib/action_controller/railties/helpers.rb:17:in inherited' from /Users/Iverson/.rvm/gems/ruby-2.2.1/gems/actionview-4.2.2/lib/action_view/test_case.rb:11:in<class:TestCase>' from /Users/Iverson/.rvm/gems/ruby-2.2.1/gems/actionview-4.2.2/lib/action_view/test_case.rb:10:in <module:ActionView>' from /Users/Iverson/.rvm/gems/ruby-2.2.1/gems/actionview-4.2.2/lib/action_view/test_case.rb:8:in<top (required)>' from /Users/Iverson/.rvm/gems/ruby-2.2.1/gems/rspec-rails-2.99.0/lib/rspec/rails/example/helper_example_group.rb:7:in <module:HelperExampleGroup>' from /Users/Iverson/.rvm/gems/ruby-2.2.1/gems/rspec-rails-2.99.0/lib/rspec/rails/example/helper_example_group.rb:4:in<module:Rails>' from /Users/Iverson/.rvm/gems/ruby-2.2.1/gems/rspec-rails-2.99.0/lib/rspec/rails/example/helper_example_group.rb:3:in <top (required)>' from /Users/Iverson/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:274:inrequire' from /Users/Iverson/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:274:in block in require' from /Users/Iverson/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:240:inload_dependency' from /Users/Iverson/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:274:in require' from /Users/Iverson/.rvm/gems/ruby-2.2.1/gems/rspec-rails-2.99.0/lib/rspec/rails/example.rb:4:in<top (required)>' from /Users/Iverson/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:274:in require' from /Users/Iverson/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:274:inblock in require' from /Users/Iverson/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:240:in load_dependency' from /Users/Iverson/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:274:inrequire' from /Users/Iverson/.rvm/gems/ruby-2.2.1/gems/rspec-rails-2.99.0/lib/rspec/rails.rb:19:in <top (required)>' from /Users/Iverson/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:274:inrequire' from /Users/Iverson/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:274:in block in require' from /Users/Iverson/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:240:inload_dependency' from /Users/Iverson/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:274:in require' from /Users/Iverson/Dropbox/code/Treehouse/Ruby/odot/spec/spec_helper.rb:4:in<top (required)>' from /Users/Iverson/Dropbox/code/Treehouse/Ruby/odot/spec/controllers/todo_lists_controller_spec.rb:1:in require' from /Users/Iverson/Dropbox/code/Treehouse/Ruby/odot/spec/controllers/todo_lists_controller_spec.rb:1:in<top (required)>' from /Users/Iverson/.rvm/gems/ruby-2.2.1/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:in load' from /Users/Iverson/.rvm/gems/ruby-2.2.1/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:inblock in load_spec_files' from /Users/Iverson/.rvm/gems/ruby-2.2.1/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:in each' from /Users/Iverson/.rvm/gems/ruby-2.2.1/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:inload_spec_files' from /Users/Iverson/.rvm/gems/ruby-2.2.1/gems/rspec-core-2.99.2/lib/rspec/core/command_line.rb:18:in run' from /Users/Iverson/.rvm/gems/ruby-2.2.1/gems/rspec-core-2.99.2/lib/rspec/core/runner.rb:103:inrun' from /Users/Iverson/.rvm/gems/ruby-2.2.1/gems/rspec-core-2.99.2/lib/rspec/core/runner.rb:17:in `block in autorun' /Users/Iverson/.rbenv/versions/2.2.2/bin/ruby -S rspec ./spec/controllers/todo_lists_controller_spec.rb ./spec/features/todo_lists/create_spec.rb ./spec/helpers/todo_lists_helper_spec.rb ./spec/models/todo_list_spec.rb ./spec/requests/todo_lists_spec.rb ./spec/routing/todo_lists_routing_spec.rb ./spec/views/todo_lists/edit.html.erb_spec.rb ./spec/views/todo_lists/index.html.erb_spec.rb ./spec/views/todo_lists/new.html.erb_spec.rb ./spec/views/todo_lists/show.html.erb_spec.rb failed

1 Answer

Raymond Sapida
Raymond Sapida
33,049 Points

Hi there,

It might not be seeing the helper file because of the uppercase letters like it was mentioned in this link or maybe something with the directory like this link. I was having a similar problem in one of the tutorials I was working on and I followed the instructions on those stack overflow links to change the directory name.

I hope one of these two work for you and good luck!

Grant Iverson
Grant Iverson
3,520 Points

Do I need to change both the "Users" folder and the "Iverson" folder to "users" and "iverson"? Will it mess anything up with my Mac to change the user folder?

Raymond Sapida
Raymond Sapida
33,049 Points

I'm not sure how Mac treats uppercase and lowercase folders so I would try the suggestions on the second link to see if that works:

cd ~ mv sites tmpsites mv tmpsites sites

If that doesn't work, I would try creating a symbolic link but I'm not sure if that command works the same way on Macs.