Getting Started with RSpec – Looking for tutorials
I’m looking to get started building a project and want to use RSpec from day one. My Ruby background is limited, however, I do have a good understanding of MVC and the structure within Ruby.
In doing some research for books and tutorials, I’ve found no currently published books, and have found no tutorials that give a good “hello world” type write up. And the documentation on the RSpec site is sparse to say the least.
Do any of you have links you’d like to share of good tutorials of getting started with roR and RSpec?


xequnsruuh on Jun 04, 2012
A good tutorial
http://blog.davidchelimsky.net/articles/2007/05/14/an-introduction-to-rspec-part-i
examples on the RSpec site
http://rubydoc.info/github/rspec/rspec-core/frames
the rspec Docs which will be useful
http://rspec.rubyforge.org/rspec/1.1.8/
developing a rails model with Rspec and BDD
http://www.lukeredpath.co.uk/2006/8/29/developing-a-rails-model-using-bdd-and-rspec-part-1
cheeseballlumpy82 on Jun 04, 2012
Peepcode has a fantastic Screencast series ($) on RSpec that should get you started:
Peepcode is a fantastic resource and the quality of the videos are top notch. I would also recommend their unlimited plan for $149 which gives you access to all of their content for a year (and any content released in the next year).
Good luck!
arora on Jun 04, 2012
The RSpec Book by David Chelimsky et al. is now in beta:
http://www.pragprog.com/titles/achbd/the-rspec-book
cheeseballlumpy82 on Jun 04, 2012
I’ll second the ringing endorsement of the Peepcode screencasts. I would definitely start with those.
One resource that might not be obvious is Ian Dees’ Scripted GUI Testing with Ruby. It’s not specifically geared towards Rails, but it has some of the clearest and most detailed examples of RSpec that I’ve seen. In particular, the chapter on integrating RSpec and Selenium is excellent.
pharme86 on Jun 04, 2012
The best documentation that I have seen for rspec can be found here: http://relishapp.com/rspec/
pharme86 on Jun 04, 2012
i’m hammering my way through this one: http://railstutorial.org
johan-offer on Jun 04, 2012
Have a look at this: http://kerryb.github.com/iprug-rspec-presentation/#3
It’s simple. But this is a great RSpec primer/cheat-sheet.
Pocket guide kind of thing
xequnsruuh on Jun 04, 2012
Two more links I want to suggest: