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!
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

Mohamed El Sharnoby
8,226 Pointscreate a todo list app: app working as expected, tests not running
I have been following jason along on my linux laptop step by step to make sure that I can understand and replicate what he says in the screecasts, it all went fine till I had to write tests, on writing tests, this is what I got in the terminal
/home/treehouse/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:229:in `require': cannot load such file -- capybara/respec (LoadError)
from /home/treehouse/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:229:in `block in require'
from /home/treehouse/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:214:in `load_dependency'
from /home/treehouse/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:229:in `require'
from /home/treehouse/projects/odot/spec/spec_helper.rb:6:in `<top (required)>'
from /home/treehouse/projects/odot/spec/features/todo_lists/create_spec.rb:1:in `require'
from /home/treehouse/projects/odot/spec/features/todo_lists/create_spec.rb:1:in `<top (required)>'
from /home/treehouse/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rspec-core-2.99.0/lib/rspec/core/configuration.rb:1065:in `load'
from /home/treehouse/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rspec-core-2.99.0/lib/rspec/core/configuration.rb:1065:in `block in load_spec_files'
from /home/treehouse/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rspec-core-2.99.0/lib/rspec/core/configuration.rb:1065:in `each'
from /home/treehouse/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rspec-core-2.99.0/lib/rspec/core/configuration.rb:1065:in `load_spec_files'
from /home/treehouse/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rspec-core-2.99.0/lib/rspec/core/command_line.rb:18:in `run'
from /home/treehouse/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rspec-core-2.99.0/lib/rspec/core/runner.rb:89:in `run'
from /home/treehouse/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rspec-core-2.99.0/lib/rspec/core/runner.rb:17:in `block in autorun'
now, the app does behave as expected so far, but I don't know for sure how can I fix the errors displayed in the message to get the tests to run correctly.
any help on that? thanks a lot.
1 Answer

Randy Winsinger
14,538 PointsMohamed, I looks like you might not have the capybara gem installed. Make sure the following is in your Gemfile: group :test do gem 'capybara', '~> 2.1.0' end
Then make sure you do the following command at the command line to install the gemfile: bundle
Mohamed El Sharnoby
8,226 PointsMohamed El Sharnoby
8,226 PointsI'm sorry, I tried to format this using the markdown cheatsheet but it didn't work.