RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: Revised Episodes xTesting x
Site-Wide Announcements (revised)
Episode #103Nov 12, 201295 comments

Site-Wide Announcements (revised)

Here I show how to add an announcement message at the top of every page in the application and allow the user to permanently hide it. This is all done test-first and even includes testing the JavaScript behavior. (11 minutes)
Testing JavaScript with Jasmine (revised)
Episode #261Jun 28, 201266 comments

Testing JavaScript with Jasmine (revised)

The jasminerice gem makes it easy to test your JavaScript with Jasmine in a Rails application. Here I also cover jasmine-jquery and guard-jasmine. (11 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)