Quick Tip: Asserting response redirects in a MonoRail controller test
Reading this post by Sean reminded me of when I first started using the trunk’s BaseControllerTest. One nifty little property on the base test controller’s mock Response object is RedirectedTo. So you can do something like this:
In previous MonoRail projects, I used the very nice base class from the guys at Eleutian and it worked great. But I’ve been using the trunk’s BaseControllerTest exclusively on my current project since it started a few months ago and it rocks as well. Nice to have it “out of the box” now.