Sign in through GitHub
Applied Filters: Testing x
MiniTest with Rails
Episode #327Feb 21, 201220 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)
Extracting a Ruby Gem
Episode #301Nov 21, 20116 comments

Extracting a Ruby Gem

In this episode I show how to extract a Ruby Gem from an existing Rails application, test it with RSpec and Supermodel, and add a Railtie. (16 minutes)
Contributing to Open Source
Episode #300Nov 21, 201112 comments

Contributing to Open Source

GitHub makes it easier than ever to contribute to open source with pull requests. Here I show how to submit a pull request to the VCR project. (9 minutes)
Factories not Fixtures (revised)
Episode #158Oct 27, 201115 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)
Testing with VCR
Episode #291Oct 17, 201121 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, 201142 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)
Testing Time & Web Requests
Episode #276Jul 25, 201127 comments

Testing Time & Web Requests

It can be difficult to test code that deals with the current time or an external web request. Here I show you how to do both using the Timecop and FakeWeb gems. (8 minutes)
How I Test
Episode #275Jul 18, 2011102 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)
Guard
Episode #264May 02, 201127 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 #261Apr 11, 201124 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)