in

 

Sean Chambers

I am a Lead Developer from Palm Coast Florida. If I could describe my skillset I would include TDD, DDD, Alt.net, NHibernate, Castle Project and so on

Testing MonoRail Filters

I was trying to test an Authentication Filter today that needed to redirect the user to a login page.

The problem was that it used context.Controller.Url, context was a MockRailsEngineContext and the Url property throws a NotImplementedException. Ayende quickly jumped on the ball and resolved the problem! Dang that was fast.

If you need to do the same just grab the trunk and it now that property will return a value rather than an exception.

 Thanks Ayende!

Comments

 

Joe Ocampo said:

I sill believe that Oren(Ayende) is an alien who doesn't sleep.  :-)

October 4, 2007 5:09 PM
 

schambers said:

I'm starting to believe it as well Joe. I've never seen anyone churn out more code than that guy. Amazing...

October 4, 2007 9:52 PM

Leave a Comment

(required)  
(optional)
(required)  

Enter the numbers above:
Add
Copyright Los Techies 2007. All rights reserved.
Powered by Community Server (Commercial Edition), by Telligent Systems