Displaying 1 result from an estimated 1 matches for "validationmaster".
2006 Aug 15
7
Trying to Overide Class Object Methdos For Testing
Hi,
I thought I had a handle on the whole singleton class thing but now I''m
not too sure.
I have a class definition:
class ValidationMaster
def validate(params)
# complex and time consuming validation
# returns true on success, raises Exception
# on failure
end
end
Okay, so when I''m running my functional tests within rails, I want to be
able to control how the validate(params) method behaves.
So, I''...