theforeman/puppet-foreman — pull request #105 by GregSutcliffe (2013-08-29 16:05:42+00:00)
Title: Add new ENC and Report Processor scripts, and some tests for them

These tests are UGLY. We have to read in the ERB, set the appropriate variables, and then eval the ERB to get a loadable ruby object, before we can run any tests against it.

That said, it does work - I'll happily take incremental improvements, but this will need to be merged along with #840 and #858 in the core foreman repo. Improvements can happen later, unless you're quick with your feedback ;)