Rewrite for testability

Testing the methods inside of the function is a complete pain.  This
moves the code out to use the PuppetX pattern and adds some basic unit
tests that validate the logic.
This commit is contained in:
Zach Leslie
2015-05-19 14:42:18 -07:00
parent f0e5e6e8a0
commit cb15ae8e70
9 changed files with 243 additions and 66 deletions

View File

@@ -35,7 +35,7 @@ PuppetSyntax.exclude_paths = exclude_paths
desc "Run acceptance tests"
RSpec::Core::RakeTask.new(:acceptance) do |t|
t.pattern = 'spec/acceptance'
t.pattern = 'spec/**/*.rb'
end
desc "Populate CONTRIBUTORS file"