Created
August 21, 2017 21:35
-
-
Save mgagne/1b55cabde1a65e2dfe002e92bd116e08 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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