RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: rspec x
Request Specs and Capybara
Episode #257Mar 14, 201154 comments

Request Specs and Capybara

Request specs in RSpec are a great way to ensure the entire application stack is working properly. Here I also show how to use capybara with integrated JavaScript testing using Selenium. (13 minutes)
Authorization from Scratch Part 1
Episode #385Oct 07, 201282 comments

Authorization from Scratch Part 1

Authorization can be difficult to implement and test because it often involves complex logic that exists throughout the entire app. Here I demonstrate how to test and implement authorization from scratch. (15 minutes)
Testing with VCR
Episode #291Oct 17, 201153 comments

Testing with VCR

If you ever need to test an application which communicates with an external API, VCR is the way to go. Here I show a workflow in RSpec, how to use with capybara-mechanize, how to add sanitization filtering, and more. (13 minutes)
Spork
Episode #285Sep 26, 201176 comments

Spork

Spork improves the loading time of your test suite by starting up your Rails application once in the background. Use it with Guard for the ultimate combo in fast feedback while doing TDD. (9 minutes)
Guard
Episode #264May 02, 201157 comments

Guard

Guard watches files and runs a command after a file is modified. This allows you to automatically run tests in the background, restart your development server, reload the browser, and more. (8 minutes)
New Gem with Bundler
Episode #245Dec 20, 201037 comments

New Gem with Bundler

Creating new gems is easy with the `bundle gem` command. In this episode I will walk you through how this works. (7 minutes)
Upgrading to Rails 3 Part 2
Episode #226Aug 09, 201048 comments

Upgrading to Rails 3 Part 2

Here we continue upgrading an application to Rails 3 by getting our specs up and running and going through the rails_upgrade plugin. (12 minutes)
Testing Controllers with RSpec
Episode #71Sep 17, 200759 comments

Testing Controllers with RSpec

Controllers are tricky to test, and there's no perfect way to do it. In this episode you will see how I test controllers, and my reasoning behind it. (11 minutes)
Pickle with Cucumber
Episode #186Nov 02, 200967 comments

Pickle with Cucumber

Pickle adds many convenient Cucumber steps for generating models. Also learn about table diffs in this episode. (16 minutes)
Bundler
Episode #201Feb 15, 201048 comments

Bundler

Bundler is the way to manage gem dependencies in Rails 3.0. Learn how to install gems and lock them down in this episode. (9 minutes)