h1. JavaScript Testing in Rails Larry and Jason, thinkrelevance.com TATFT - Test All The Fucking Time - even javascript! h2. Blue-ridge Rails plugin that's really just a toolbox for javascript testing github.com/relevance/blue-ridge ./script/generate blue_ridge - Generates javascript tests with a syntax very similar to RSpec Textmate bundle for blue-ridge exists. github.com/karnowski/blue-ridge-tmbundle It can be run from the command-line AND from the browser. h3. TDD ./script/generate javascript_spec project h3. Stubbing h3. Fixtures You put the HTML objects in the /test/javascript/fixtures/project.html OR you can insert the fixtures dynamically like with FactoryGirl. h2. Screw.Unit One of the tools in blue-ridge. Uses matchers like in RSpec - you can write your own. Uses Rhino which runs on the JVM. h2. Tiying into Rake task :default => "test:javascript" in Rakefile h2. Run>code>run Continuos integration tool made by the presenters h2. Other types of testing It's not recommended to test "wire-methods" in JS unit-tests. This should be done in higher level tests.