Getting Started with RSpec – Looking for tutorials

Tag: , , , ,

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?

8 Answers

  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!

  2. 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

  3. 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.

  4. pharme86 on Jun 04, 2012

    The best documentation that I have seen for rspec can be found here: http://relishapp.com/rspec/

  5. pharme86 on Jun 04, 2012

    i’m hammering my way through this one: http://railstutorial.org

  6. 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

  7. xequnsruuh on Jun 04, 2012

    Two more links I want to suggest: