1 # Matchers for chefspec 3
4 def create_yum_repository(resource_name)
5 ChefSpec::Matchers::ResourceMatcher.new(:yum_repository, :create, resource_name)
8 def add_yum_repository(resource_name)
9 ChefSpec::Matchers::ResourceMatcher.new(:yum_repository, :add, resource_name)
12 def delete_yum_repository(resource_name)
13 ChefSpec::Matchers::ResourceMatcher.new(:yum_repository, :delete, resource_name)
16 def remove_yum_repository(resource_name)
17 ChefSpec::Matchers::ResourceMatcher.new(:yum_repository, :remove, resource_name)
20 def create_yum_globalconfig(resource_name)
21 ChefSpec::Matchers::ResourceMatcher.new(:yum_globalconfig, :create, resource_name)
24 def delete_yum_globalconfig(resource_name)
25 ChefSpec::Matchers::ResourceMatcher.new(:yum_globalconfig, :delete, resource_name)