Sweeter unit tests in Rails 2.0
I have only just now discovered a sweet new feature of Rails 2.0. Unit and functional tests have gotten a lot sweeter. I can now subclass ActionController::TestCase and do away with all the setup cruft that used to be there. Sweet!
One caveat: in Rails 2.0.2 the ’super’ trick really is needed. D’oh!
No comments yet.