RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: rails xTesting x
Fixtures in Rails 2.0
Episode #81 – Nov 25, 2007 – 51 comments

Fixtures in Rails 2.0

In Rails 2.0, fixtures see many improvements which makes them much easier to manage. Watch this episode for details. (4 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)
Request Specs and Capybara
Episode #257 – Mar 14, 2011 – 54 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)
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)
Testing JavaScript with Jasmine
Episode #261 – Apr 11, 2011 – 44 comments

Testing JavaScript with Jasmine

Are you testing your JavaScript? Learn how to add specs using Jasmine. This episode also covers jQuery integration with jasmine-jquery. (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)
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)
Factories not Fixtures
Episode #158 – Apr 20, 2009 – 67 comments

Factories not Fixtures

Fixtures are external dependencies which can make tests brittle and difficult to read. In this episode I show a better alternative using factories to generate the needed records. (12 minutes)
More on Cucumber
Episode #159 – Apr 27, 2009 – 57 comments

More on Cucumber

There is a lot more to Cucumber than I showed in an earlier episode. See how to refactor complex scenarios in this episode. (18 minutes)
Selenium
Episode #116 – Jun 30, 2008 – 64 comments

Selenium

Selenium is a great way to test your app automatically through a browser. See how it works in this episode. (9 minutes)