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

Layla Wu
Layla Wu
260 Points

Updates for Rails 4.2.3

I'm following the "Build a Todo List App" tutorial using Rails 4.2.3. I had trouble getting my Rspec to work properly. After some fiddling and googling, I did the following changes to my files to get the Rspec to work:

  • put my "web-console" gem in development mode only: gem 'web-console', group: :development
  • in my gem file, I updated my "rspec-rails" to 3.4 and higher: gem 'rspec-rails', '~>3.4'
  • again in gem file, updated "capybara" to 2.4 and higher: gem 'capybara', '~>2.4' used
  • "bundle exec rspec spec/features/todo_lists/create_spec.rb" to run rspec. or "bundle exec rspec" to run all examples

Hope this will be helpful to people who use the same version Rails.

Joshua "TechDev" Walker
Joshua "TechDev" Walker
6,823 Points

Layla Wu I just wanted to say thank you!

I had a few things extra I had to do, due to my Ruby being out of date but this helped me fix everything!

I got stuck on testing too and wasnt sure what I was doing wrong lol