When developing a project, I turned to shoulda for testing just because it’s what I was familiar with. However, the project hasn’t had a release in over a year. I’m wondering if anyone has recommendations on alternatives, or if I should just stick with shoulda?
When developing a project, I turned to shoulda for testing just because it’s what
Share
The remarkable gem is the closest I’ve found to Shoulda. Unfortunately it looks like it hasn’t been updated in even longer. It also relies on RSpec and it not compatible with Test::Unit.
It isn’t clear to me how well it supports Rails 3 – although there are some instructions for getting it up and running.
After looking into both Shoulda and Remarkable I decided to go with Shoulda as it still seemed the more likely set of helpers to be updated.
One of the issues you will have with shoulda is that Thoughtbot uses RSpec rather than Test::Unit, which is part of the reason that the Shoulda gem (which exists for the benefit of Test::Unit users) has seen little activity – the RSpec component of the gem, shoulda-matchers, has been updated much more recently. Thoughtbot also found a new maintainer for shoulda-contextin Jan 2012 (this is the gem required alongside shoulda-matchers to get everything working in Test::Unit – the shoulda gem really only pulls in shoulda-matchers and shoulda-context) so there should be more focus on the Test::Unit side moving forward I expect.
Hopefully these moves give at least a little confidence that Shoulda for Test::Unit will be updated more frequently moving forward. In the absence of any other suggestions I would stick with Shoulda for the time being.