-
Dr Nic 4.28
Description:
Dead simple JavaScript Unit Tests in Rails with Blue Ridge and Screw.Unit Rails was the first place many of us learnt about unit testing, and then learnt TDD/BDD. Yet everyday Rails developers use JavaScript without writing any unit tests. This is sad.
In the past, perhaps you didn't know how to get started? Didn't know what files were needed? How to write tests? How to emulate user actions?
Not any more. The Rails plugin blue-ridge bundles one of the best JS testing frameworks Screw.Unit, with simple conventions, getting-started generators, and even a headless "rake test:javascripts" task for your continuous integration process.
After this session, you'll never write another line of JavaScript without first writing a test. Or the pagan gods of client-side scripting will slap you.

Great presentation, thanks for making evident the low threshold to JS testing