Hi, As promised a long time ago, I'm delivering a set of specs tests for puppetdoc rdoc mode. Those cover only the "rdoc parser" which is the interface between puppet and RDoc, I didn't cover the html generator per-se which is under control of RDoc. Oh, and btw there's also a minimal integration test.
I also used the momentum to add two new requested features: * puppetdoc now knows how to deal with 'require'd classes * puppetdoc shows for each class/nodes the classes/nodes that inherits from it. Oh, BTW, this is for master/Rowlf The code is available in the tickets/master/2703 branch of my github repository: http://github.com/masterzen/puppet/tree/tickets/master/2703 Please review and comment as usual, Thanks, Brice Brice Figureau (3): Fix #2703 - add 'require' to puppetdoc Fix #2376 - Display class/node inheritance in puppetdoc Covers the RDoc Puppet Parser with specs lib/puppet/util/rdoc/code_objects.rb | 12 +- .../util/rdoc/generators/puppet_generator.rb | 63 +++- .../util/rdoc/generators/template/puppet/puppet.rb | 36 +- lib/puppet/util/rdoc/parser.rb | 36 +- spec/integration/util/rdoc/parser.rb | 42 ++ spec/unit/util/rdoc.rb | 153 +++++++ spec/unit/util/rdoc/parser.rb | 461 ++++++++++++++++++++ 7 files changed, 775 insertions(+), 28 deletions(-) create mode 100755 spec/integration/util/rdoc/parser.rb create mode 100755 spec/unit/util/rdoc.rb create mode 100755 spec/unit/util/rdoc/parser.rb --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en -~----------~----~----~----~------~----~------~--~---
