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

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