update comment in the template
[heat-templates.git] / cookbooks / yum / libraries / matchers.rb
blob433347b87e706228c1cf89d331d3c6fd692ee181
1 # Matchers for chefspec 3
3 if defined?(ChefSpec)
4   def create_yum_repository(resource_name)
5     ChefSpec::Matchers::ResourceMatcher.new(:yum_repository, :create, resource_name)
6   end
8   def add_yum_repository(resource_name)
9     ChefSpec::Matchers::ResourceMatcher.new(:yum_repository, :add, resource_name)
10   end
12   def delete_yum_repository(resource_name)
13     ChefSpec::Matchers::ResourceMatcher.new(:yum_repository, :delete, resource_name)
14   end
16   def remove_yum_repository(resource_name)
17     ChefSpec::Matchers::ResourceMatcher.new(:yum_repository, :remove, resource_name)
18   end
20   def create_yum_globalconfig(resource_name)
21     ChefSpec::Matchers::ResourceMatcher.new(:yum_globalconfig, :create, resource_name)
22   end
24   def delete_yum_globalconfig(resource_name)
25     ChefSpec::Matchers::ResourceMatcher.new(:yum_globalconfig, :delete, resource_name)
26   end
27 end