Class: Puppet::Resource
- Inherits:
-
Object
- Object
- Puppet::Resource
- Defined in:
- lib/puppet-catalog_rspec/resource.rb
Overview
Monky patch Puppet
Defined Under Namespace
Classes: Catalog
Instance Method Summary collapse
Instance Method Details
#to_rspec ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/puppet-catalog_rspec/resource.rb', line 5 def to_rspec type = self.type.downcase.tr(':', '_') puts "it { is_expected.to contain_#{type}('#{title}')" properties puts '}' puts '' end |