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 Deleting Todo Lists

More information on Rspec

I know its a little late in the course to be asking this, is there anymore information on Rspec?

I am completely new to Ruby and do mostly Front End Development.

I understand that Rspec is validation and partly debugging, but I don't understand how many other options are out there and everything that Rspec can do.

Thanks!

Walker

2 Answers

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

The best source I know is this book: https://leanpub.com/everydayrailsrspec

You have to be aware of some changes between RSpec 2 and 3. Odot course uses version 2 and the newest version of the book covers version 3 (but I think it also gives you access to v2 as well).

You should also read on Test Driven Development (TDD) to understand why Jason writes tests first and writes the program without even using it in the browser at some points - just running rspec tests. Ignore the whole "Is TDD dead?" discussion for now.

Also be aware that there are two "philosophies" - some devs use RSpec (Prime Stack), some use MiniTest (Default Stack).

The Pragmatic Folk also have a book 'The RSpec Book' that can be pretty handy.

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

Only if you're using old versions of RSpec with very old syntax (should instead of expect).