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 trialVinny Harris-Riviello
11,898 Pointsbin/rake spec failed Any ideas how to fix so I can continue ? This is what the terminal is showing:
EffiMacBookPro:luvli Vinny$ bin/rake spec
/Users/Vinny/.rbenv/versions/2.2.3/bin/ruby -S rspec ./spec/controllers/luv_lists_controller_spec.rb ./spec/features/luv_lists/create_spec.rb ./spec/helpers/luv_lists_helper_spec.rb ./spec/models/luv_list_spec.rb ./spec/requests/luv_lists_spec.rb ./spec/routing/luv_lists_routing_spec.rb ./spec/views/luv_lists/edit.html.erb_spec.rb ./spec/views/luv_lists/index.html.erb_spec.rb ./spec/views/luv_lists/new.html.erb_spec.rb ./spec/views/luv_lists/show.html.erb_spec.rb
/Users/Vinny/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/helpers.rb:151:in `rescue in block in modules_for_helpers': Missing helper file helpers//users/vinny/development/effi_rails/luvli/app/helpers/application_helper.rb_helper.rb (AbstractController::Helpers::MissingHelperError)
from /Users/Vinny/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/helpers.rb:148:in `block in modules_for_helpers'
from /Users/Vinny/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/helpers.rb:144:in `map!'
from /Users/Vinny/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/helpers.rb:144:in `modules_for_helpers'
from /Users/Vinny/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/helpers.rb:93:in `modules_for_helpers'
from /Users/Vinny/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/helpers.rb:108:in `helper'
from /Users/Vinny/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_controller/railties/helpers.rb:17:in `inherited'
from /Users/Vinny/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionview-4.2.4/lib/action_view/test_case.rb:11:in `<class:TestCase>'
from /Users/Vinny/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionview-4.2.4/lib/action_view/test_case.rb:10:in `<module:ActionView>'
from /Users/Vinny/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/actionview-4.2.4/lib/action_view/test_case.rb:8:in `<top (required)>'
from /Users/Vinny/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rspec-rails-2.99.0/lib/rspec/rails/example/helper_example_group.rb:7:in `<module:HelperExampleGroup>'
from /Users/Vinny/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rspec-rails-2.99.0/lib/rspec/rails/example/helper_example_group.rb:4:in `<module:Rails>'
from /Users/Vinny/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rspec-rails-2.99.0/lib/rspec/rails/example/helper_example_group.rb:3:in `<top (required)>'
from /Users/Vinny/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `require'
from /Users/Vinny/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `block in require'
from /Users/Vinny/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:240:in `load_dependency'
from /Users/Vinny/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `require'
from /Users/Vinny/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rspec-rails-2.99.0/lib/rspec/rails/example.rb:4:in `<top (required)>'
from /Users/Vinny/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `require'
from /Users/Vinny/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `block in require'
from /Users/Vinny/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:240:in `load_dependency'
from /Users/Vinny/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `require'
from /Users/Vinny/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rspec-rails-2.99.0/lib/rspec/rails.rb:19:in `<top (required)>'
from /Users/Vinny/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `require'
from /Users/Vinny/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `block in require'
from /Users/Vinny/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:240:in `load_dependency'
from /Users/Vinny/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `require'
from /Users/Vinny/development/Effi-Rails/luvli/spec/spec_helper.rb:4:in `<top (required)>'
from /Users/Vinny/development/Effi-Rails/luvli/spec/controllers/luv_lists_controller_spec.rb:1:in `require'
from /Users/Vinny/development/Effi-Rails/luvli/spec/controllers/luv_lists_controller_spec.rb:1:in `<top (required)>'
from /Users/Vinny/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:in `load'
from /Users/Vinny/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:in `block in load_spec_files'
from /Users/Vinny/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:in `each'
from /Users/Vinny/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:in `load_spec_files'
from /Users/Vinny/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-2.99.2/lib/rspec/core/command_line.rb:18:in `run'
from /Users/Vinny/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-2.99.2/lib/rspec/core/runner.rb:103:in `run'
from /Users/Vinny/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rspec-core-2.99.2/lib/rspec/core/runner.rb:17:in `block in autorun'
/Users/Vinny/.rbenv/versions/2.2.3/bin/ruby -S rspec ./spec/controllers/luv_lists_controller_spec.rb ./spec/features/luv_lists/create_spec.rb ./spec/helpers/luv_lists_helper_spec.rb ./spec/models/luv_list_spec.rb ./spec/requests/luv_lists_spec.rb ./spec/routing/luv_lists_routing_spec.rb ./spec/views/luv_lists/edit.html.erb_spec.rb ./spec/views/luv_lists/index.html.erb_spec.rb ./spec/views/luv_lists/new.html.erb_spec.rb ./spec/views/luv_lists/show.html.erb_spec.rb failed
Vinny Harris-Riviello
11,898 PointsVinny Harris-Riviello
11,898 PointsFound the solution, needed to add require 'capybara/rails'
So on top of spec_helper.rb I only had one call to Capybara, now it looks like this:
ENV["RAILS_ENV"] ||= 'test' require File.expand_path("../../config/environment", FILE) require 'rspec/rails'
# To load Capybara integration:
require 'capybara/rspec' require 'capybara/rails'
I was going to do all videos again to see what I was missing glad I found it before all that :)