lib/beaker-facter.rb in beaker-facter-0.1.0 vs lib/beaker-facter.rb in beaker-facter-0.1.1

- old
+ new

@@ -7,5 +7,19 @@ require 'beaker-facter/version' end end end end + +# Boilerplate DSL inclusion mechanism: +# First we register our module with the Beaker DSL +Beaker::DSL.register( Beaker::DSL::Helpers::Facter ) + +# Second,We need to reload the DSL, but before we had reloaded +# it in the global namespace, which result in errors colliding +# with other gems rightfully not expecting beaker's dsl to +# be available at the global level. +module Beaker + class TestCase + include Beaker::DSL + end +end