Tuesday, February 10, 2009 Using shoulda custom macros from gems
For a while now, I’ve been using Shoulda for testing my Rails apps. Shoulda’s killer feature is its extensive set of macros (such as should_require_unique_attributes and should_render_template) that turn complex tests into a single line of code. Some Rails plugins are starting to include their own custom Shoulda macros to simplify testing their features.
