RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: rspec xTools x
Fast Tests
Episode #413 – Apr 10, 2013 – 200 comments

Fast Tests

A slow test suite can put a damper on test-driven development. In this episode I show a variety of ways to optimize specs including: selective testing, preloading Rails, and testing outside of Rails. (17 minutes)
Custom App Generators (revised)
Episode #148 – Feb 03, 2013 – 100 comments

Custom App Generators (revised)

Learn how to customize the Rails app generator to fit your preference. This episode shows how to do this using .railsrc file, app templates, app builders, RailsWizard, and AppScrolls. (10 minutes)
RSpec Matchers & Macros
Episode #157 – Apr 13, 2009 – 40 comments

RSpec Matchers & Macros

You can improve the readability and remove duplication in RSpec by adding matchers and macros. Learn how in this episode. (18 minutes)
Testing JavaScript with PhantomJS
Episode #391 – Nov 07, 2012 – 84 comments

Testing JavaScript with PhantomJS

PhantomJS allows us to test JavaScript without going through a browser window. Here I show how to do this using Capybara and Poltergeist. I also give some tips on handling database transactions and skipping javascript tests. (10 minutes)
Spork
Episode #285 – Sep 26, 2011 – 76 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 #264 – May 02, 2011 – 57 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 #245 – Dec 20, 2010 – 37 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)
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)