At the Forge - Testing Rails Applications with Shoulda
The home page for Shoulda is thoughtbot.com/projects/shoulda. The documentation here is a good starting point, but you probably will need to play with it a bit to get the hang of things. Even the small problem I described above, in testing the minimum and maximum ages for a person, showed that you still might need to poke through the documentation to understand things fully.
A PDF cheat sheet for Shoulda is at kylebanker.com/assets/content/2008/shoulda_cheat_sheet.pdf, and the popular cheat sheet program for Ruby programmers also has an entry: cheat.errtheblog.com/s/shoulda.
The following are a few interesting blog posts about Shoulda that also can provide some useful ideas: pragdave.blogs.pragprog.com/pragdave/2008/04/shoulda-used-th.html, giantrobots.thoughtbot.com/2009/2/3/speculating-with-shoulda and www.alexjsharp.com/2008/10/15/shoulda-painless-unit-testing.
Reuven M. Lerner, a longtime Web/database developer and consultant, is a PhD candidate in learning sciences at Northwestern University, studying on-line learning communities. He recently returned (with his wife and three children) to their home in Modi'in, Israel, after four years in the Chicago area.
Web Development News
|The True Internet of Things||Sep 02, 2015|
|September 2015 Issue of Linux Journal: HOW-TOs||Sep 01, 2015|
|September 2015 Video Preview||Sep 01, 2015|
|Using tshark to Watch and Inspect Network Traffic||Aug 31, 2015|
|Where's That Pesky Hidden Word?||Aug 28, 2015|
|A Project to Guarantee Better Security for Open-Source Projects||Aug 27, 2015|
- The True Internet of Things
- Using tshark to Watch and Inspect Network Traffic
- September 2015 Issue of Linux Journal: HOW-TOs
- Problems with Ubuntu's Software Center and How Canonical Plans to Fix Them
- Firefox Security Exploit Targets Linux Users and Web Developers
- Where's That Pesky Hidden Word?
- Concerning Containers' Connections: on Docker Networking
- A Project to Guarantee Better Security for Open-Source Projects
- Build a “Virtual SuperComputer” with Process Virtualization
- My Network Go-Bag