RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: migrations xTesting x
How I Test
Episode #275 – Jul 18, 2011 – 137 comments

How I Test

Here I show how I would add tests to the password reset feature created in the previous episode. I use RSpec, Capybara, Factory Girl, and Guard to make request, model, and mailer specs. (15 minutes)
MiniTest with Rails
Episode #327 – Feb 21, 2012 – 77 comments

MiniTest with Rails

MiniTest is a fast and lightweight testing library. Here you will learn how to use it in a Rails app for model, helper, and integration testing. The Turn gem is also demonstrated for prettier test output. (15 minutes)
Pickle with Cucumber
Episode #186 – Nov 02, 2009 – 67 comments

Pickle with Cucumber

Pickle adds many convenient Cucumber steps for generating models. Also learn about table diffs in this episode. (16 minutes)
Beginning with Cucumber
Episode #155 – Mar 30, 2009 – 107 comments

Beginning with Cucumber

Cucumber is a high-level testing framework. In this episode we will create a new Rails application from scratch using behavior driven development. (15 minutes)
Webrat
Episode #156 – Apr 06, 2009 – 60 comments

Webrat

If you prefer writing integration tests in ruby instead of Cucumber's plain english, consider interacting with Webrat directly as I show in this episode. (7 minutes)