RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: test x
Testing JavaScript with Jasmine
Episode #261Apr 11, 201144 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)
A/B Testing with A/Bingo
Episode #214May 17, 201052 comments

A/B Testing with A/Bingo

A/B Testing (or Split Testing) is a way to experiment with variations in an application to see the most effective option. (11 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)
MiniTest with Rails
Episode #327Feb 21, 201277 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)
Presenters from Scratch
Episode #287Oct 03, 2011122 comments

Presenters from Scratch

Clean up complex view logic with the help of presenters, and doing this from scratch gives you a lot of flexibility. Here I show not only how to create presenters, but how to test them using Test Unit and RSpec. (14 minutes)
Testing Exceptions
Episode #187Nov 09, 200955 comments

Testing Exceptions

Sometimes bad code slips into production and triggers a 500 error. Learn how to be notified of this and resolve it through integration tests. (10 minutes)
Factories not Fixtures (revised)
Episode #158Oct 27, 201144 comments

Factories not Fixtures (revised)

Fixtures are external dependencies which can make tests brittle and difficult to read. In this episode I show how to use Factory Girl to generate the needed records directly in the tests. (9 minutes)
Custom App Generators (revised)
Episode #148Feb 03, 2013100 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)
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)
Adding an Environment (revised)
Episode #72Jan 19, 201245 comments

Adding an Environment (revised)

Rails comes with three environments: development, test, and production, but it is easy to add your own. Here I show how to add a separate staging environment and how to start up Rails under this. (4 minutes)