added specs for generators; now handles namespaced classes

Hey - I ran into problems when using the generators with namespaced classes.  I added that functionality and the appropriate specs.

Thanks for your gem - we really like it.
Let me know if you need me to update anything!
Rebecca H.