▶   We’ve been acquired by Pluralsight!   ▶   Upgrade your account to Pluralsight   ▶   More details…

RSpec 2: The Basics (Part 1 of 3)


Download Free Preview

Purchase includes iPod download Purchase includes Quicktime (zip) download

PeepCode was the first company to publish documentation about RSpec, and it was one of the first top selling videos that helped us get started as a company.

Since then, RSpec has only increased in popularity. Once you’ve mastered the basics of Ruby on Rails, you should learn RSpec. It’s a tool that every Ruby developer should be comfortable using.

RSpec is about writing human readable, executable documentation for your code. The process of writing RSpec examples can improve the quality of your implementation code. It can help you understand new frameworks by formalizing your expectations about how they work. As a side effect, you’ll get a test suite that verifies the correctness of your applications and helps you avoid writing new bugs into the system.

And we’re here to help you get there! This is a rewrite from scratch of our best selling RSpec series.

  • In Part 1 (this video) you’ll learn the basic RSpec syntax and the best ways to use it.
  • A separate video, Part 2, covers intermediate topics such as mocks, stubs, error cases.
  • Part 3 adds Ruby on Rails into the equation, covering factories, code organization, and running tests quickly.

We cover the latest syntax in RSpec, including the new expect syntax that works better with Ruby 1.9/2.0. We hope to publish all three parts by the end of December.

Learning RSpec is one of the best ways to improve your skills as a developer. Get started with RSpec today, and help your team get up to speed quickly! Also available as part of our Unlimited subscription and company plans.


Assumes basic knowledge of Ruby.

Revision 1 (Notes) · Updated: Nov 19, 2012 · Length: 49 min · 167 MB

Screencast Catalog