views:

37

answers:

1

I want to use Peter Marklund's html test plugin to automatically validate all of my HTML pages. I'm following his README instructions and have installed the plugin successfully. However, when I use his "assert_validates" method in a test, I get the following error message:

NameError: uninitialized constant Html::Test::Validator::RailsTidy

To me this looks like the plugin isn't being loaded (and thus the classes/methods aren't avilable). Is there something that I need to do (such as a "require", etc) in order to load/activate a plugin? I haven't done anything besides what I've described above. I get the feeling that there's something general I'm missing rather than something broken in the plugin itself. (If that's not the case, then I'll go to Peter for additional help.)

+3  A: 

Do you need to also have the RailsTidy plugin, it's not clear from Peter's remarks if he pulled out the code that was needed or if you need both.

Mike Buckbee
Yup, installing RailsTidy did it; thanks a bunch. I'm going to ping Peter to update his README
Craig Walker