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 trialDinesh Vijaykumar
9,879 Pointsbin/rake spec failed
I seem to get the following error when i type the command bin/rake spec -
/Users/Din/.rbenv/versions/2.2.2/bin/ruby -S rspec ./spec/controllers/todo_lists_controller_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/Din/.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/din/documents/development/rails/odot/app/helpers/application_helper.rb_helper.rb (AbstractController::Helpers::MissingHelperError)
from /Users/Din/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.2/lib/abstract_controller/helpers.rb:148:in
block in modules_for_helpers'
from /Users/Din/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.2/lib/abstract_controller/helpers.rb:144:in map!'
from /Users/Din/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.2/lib/abstract_controller/helpers.rb:144:in
modules_for_helpers'
from /Users/Din/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.2/lib/action_controller/metal/helpers.rb:93:in modules_for_helpers'
from /Users/Din/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.2/lib/abstract_controller/helpers.rb:108:in
helper'
from /Users/Din/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.2/lib/action_controller/railties/helpers.rb:17:in inherited'
from /Users/Din/.rvm/gems/ruby-2.2.1/gems/actionview-4.2.2/lib/action_view/test_case.rb:11:in
<class:TestCase>'
from /Users/Din/.rvm/gems/ruby-2.2.1/gems/actionview-4.2.2/lib/action_view/test_case.rb:10:in <module:ActionView>'
from /Users/Din/.rvm/gems/ruby-2.2.1/gems/actionview-4.2.2/lib/action_view/test_case.rb:8:in
<top (required)>'
from /Users/Din/.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/Din/.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/Din/.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/Din/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:274:in
require'
from /Users/Din/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:274:in block in require'
from /Users/Din/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:240:in
load_dependency'
from /Users/Din/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:274:in require'
from /Users/Din/.rvm/gems/ruby-2.2.1/gems/rspec-rails-2.99.0/lib/rspec/rails/example.rb:4:in
<top (required)>'
from /Users/Din/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:274:in require'
from /Users/Din/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:274:in
block in require'
from /Users/Din/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:240:in load_dependency'
from /Users/Din/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:274:in
require'
from /Users/Din/.rvm/gems/ruby-2.2.1/gems/rspec-rails-2.99.0/lib/rspec/rails.rb:19:in <top (required)>'
from /Users/Din/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:274:in
require'
from /Users/Din/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:274:in block in require'
from /Users/Din/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:240:in
load_dependency'
from /Users/Din/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:274:in require'
from /Users/Din/Documents/development/rails/odot/spec/spec_helper.rb:4:in
<top (required)>'
from /Users/Din/Documents/development/rails/odot/spec/controllers/todo_lists_controller_spec.rb:1:in require'
from /Users/Din/Documents/development/rails/odot/spec/controllers/todo_lists_controller_spec.rb:1:in
<top (required)>'
from /Users/Din/.rvm/gems/ruby-2.2.1/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:in load'
from /Users/Din/.rvm/gems/ruby-2.2.1/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:in
block in load_spec_files'
from /Users/Din/.rvm/gems/ruby-2.2.1/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:in each'
from /Users/Din/.rvm/gems/ruby-2.2.1/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:in
load_spec_files'
from /Users/Din/.rvm/gems/ruby-2.2.1/gems/rspec-core-2.99.2/lib/rspec/core/command_line.rb:18:in run'
from /Users/Din/.rvm/gems/ruby-2.2.1/gems/rspec-core-2.99.2/lib/rspec/core/runner.rb:103:in
run'
from /Users/Din/.rvm/gems/ruby-2.2.1/gems/rspec-core-2.99.2/lib/rspec/core/runner.rb:17:in `block in autorun'
/Users/Din/.rbenv/versions/2.2.2/bin/ruby -S rspec ./spec/controllers/todo_lists_controller_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
33,049 PointsHI there,
I found a stack overflow link that might be related. The error is saying that the Application Helper isn't being included properly so it might be that the program isn't able to find the file or that the file isn't named properly. The stack overflow link mentioned that some users have problems when the working directory starts with a capitalized letter. From the stack message, that might be the case because I'm seeing a working directory of
/Users/Din/.rbenv/versions/2.2.2/bin/ruby
but the error message is looking for a directory with lowercase letters:
Missing helper file helpers//users/din/documents/development/rails/odot/app/helpers/application_helper.rb
I hope this was helpful and good luck!