The Shoulda rails plugin makes it easy to write elegant, understandable, and maintainable tests. Shoulda consists of test macros, assertions, and helpers added on to the Test::Unit framework. It’s fully compatible with your existing tests, and requires no retooling to use.

Helpers – context and should give you rSpec like test blocks. In addition, you get nested contexts and a much more readable syntax.

Macros – Generate hundreds of lines of Controller and ActiveRecord tests with these powerful macros. They get you started quickly, and can help you ensure that your application is conforming to best practices.

Assertions – Many common rails testing idioms have been distilled into a set of useful assertions.

The Shoulda rails plugin includes the code from the Shoulda ruby gem. For more information about both, see the project page.

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »