Skip to content

Instantly share code, notes, and snippets.

@mgagne
Created August 21, 2017 21:35
module RSpec::Puppet
module GenericDynamicMatchers
def method_missing(method, *args, &block)
return RSpec::Puppet::ManifestMatchers::CreateGeneric.new("contain_#{args[0]}", args[1], &block) if method == :contain
super
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment