Skip to content

Instantly share code, notes, and snippets.

@ploubser
Last active December 15, 2015 03:49
Show Gist options
  • Select an option

  • Save ploubser/5197135 to your computer and use it in GitHub Desktop.

Select an option

Save ploubser/5197135 to your computer and use it in GitHub Desktop.
# Working Tests
before(:each) do
Puppet::Parser::Functions.autoloader.loadall
mock_puppet_function(:appconfig_lookup).stubs(:call).returns({'hello' => 'world'})
end
# Vs old setup
before(:all) do
Puppet::Parser::Functions.autoloader.loadall
end
before(:each) do
mock_puppet_function(:appconfig_lookup).stubs(:call).returns({'hello' => 'world'})
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment