Skip to content

Instantly share code, notes, and snippets.

@mgagne
Created August 21, 2017 21:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgagne/1b55cabde1a65e2dfe002e92bd116e08 to your computer and use it in GitHub Desktop.
Save mgagne/1b55cabde1a65e2dfe002e92bd116e08 to your computer and use it in GitHub Desktop.
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