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

Editing Todo Lists

Hello, I am working through the build a simple todo app and have gotten stuck... I have been following everything exactly but now am having issues with capybara. When I previously ran bin/rspec /spec/features/todo_lists/create_spec.rb my tests would run just fine. Now, after making the edit_spec.rb file, my tests no longer work. I am given the following error:

/home/treehouse/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/capybara-2.1.0/lib/capybara/dsl.rb:49:in <module:DSL>': uninitialized constant Capybara::DSL::Session (NameError) from /home/treehouse/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/capybara-2.1.0/lib/capybara/dsl.rb:4:in<module:Capybara>' from /home/treehouse/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/capybara-2.1.0/lib/capybara/dsl.rb:3:in <top (required)>' from /home/treehouse/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/capybara-2.1.0/lib/capybara/rspec.rb:2:in<top (required)>' from /home/treehouse/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rspec-rails-2.14.1/lib/rspec/rails/vendor/capybara.rb:2:in <top (required)>' from /home/treehouse/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rspec-rails-2.14.1/lib/rspec/rails.rb:17:in<top (required)>' from /home/treehouse/projects/odot/spec/spec_helper.rb:4:in <top (required)>' from /home/treehouse/projects/odot/spec/features/todo_lists/create_spec.rb:1:inrequire' 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.14.7/lib/rspec/core/configuration.rb:896:inload' from /home/treehouse/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896: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.14.7/lib/rspec/core/configuration.rb:896:ineach' from /home/treehouse/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in load_spec_files' from /home/treehouse/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/command_line.rb:22:inrun' from /home/treehouse/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:80:in run' from /home/treehouse/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:17:inblock in autorun'

Any ideas on what could be going wrong?

I am using the treehouse VM on a mac.

Wow.. What a mess. I think I may have figured out the problem though... I realized that I installed rbenv on top of rvm so my path had both. I tried to get rid of rbenv and rvm and reinstall one or the other about a dozen times but that gave me a ton of grief. I ended up going with rvm since rbenv kept messing up my computer. I had to completely wipe all of my terminal's data with $ rm -i ~/.profile ~/.bash* Afterward I deleted any and all files related to rbenv and rvm. I then reinstalled rvm, updated Ruby and installed Rails. I haven't run into any problems yet so I am thinking I may have fixed the problem. I would hope that for future reference the Treehouse team adds a disclaimer in the video (setting up a rails environment) to not install rbenv if you have already installed rvm.