[rspec-users] Good introduction to rspec

Fernando Perez lists at ruby-forum.com
Wed Apr 1 02:50:23 EDT 2009

> http://peepcode.com/products/rspec-basics
> http://peepcode.com/products/rspec-mocks-and-models
> http://peepcode.com/products/rspec-controllers-and-tools

I didn't like at all the peepcode episodes on RSpec. You'll have to 
rewrite his valid_attributes trick from scratch if your models use 
attr_accessible, and some other stuff.

The part about mocking is hard to grasp (although mocking is just such 
an easy concept). He uses fixtures, and tests for too many things in the 

I don't spec at all the way he shows, I might be doing things wrong, but 
I am very happy with my workflow.
Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list