teamcfadvance / ValidateThis

An object oriented validation framework for ColdFusion objects
http://www.validatethis.org
44 stars 32 forks source link

edited getValidator to allow it to search components dot-path #59

Closed d1rtym0nk3y closed 13 years ago

d1rtym0nk3y commented 13 years ago

edited getValidator to allow it to search components dot-path under definitionPath e.g model.entity.User -> /mydefinitionPath/model/entity/User.xml

I'm not sure if this is the correct place to implement this, but seems like a good place as will only be run once.

bobsilverberg commented 13 years ago

I'm having trouble getting this to work on my system. I've tried writing a unit test for it, which I expect to pass, but it isn't passing. It seems like md.fullname is returning too much of the path. I'm not sure if this is environmental or not. Would it be possible for you to create a unit test for this feature that passes on your system and then I can see if it also passes on my system?