Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,440 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,440 Points

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