module RSpec::Puppet::ManifestMatchers
Public Instance Methods
have_class_count(count)
click to toggle source
# File lib/rspec-puppet/matchers/count_generic.rb, line 81 def have_class_count(count) RSpec::Puppet::ManifestMatchers::CountGeneric.new('class', count) end
have_resource_count(count)
click to toggle source
# File lib/rspec-puppet/matchers/count_generic.rb, line 85 def have_resource_count(count) RSpec::Puppet::ManifestMatchers::CountGeneric.new('resource', count) end
method_missing(method, *args, &block)
click to toggle source
Calls superclass method
# File lib/rspec-puppet/matchers/dynamic_matchers.rb, line 5 def method_missing(method, *args, &block) if /^(create|contain)_/.match?(method.to_s) return RSpec::Puppet::ManifestMatchers::CreateGeneric.new(method, *args, &block) end if /^have_.+_count$/.match?(method.to_s) return RSpec::Puppet::ManifestMatchers::CountGeneric.new(nil, args[0], method) end return RSpec::Puppet::ManifestMatchers::Compile.new if method == :compile super end
supports_block_expectations()
click to toggle source
# File lib/rspec-puppet/matchers/include_class.rb, line 27 def supports_block_expectations true end
supports_value_expectations()
click to toggle source
# File lib/rspec-puppet/matchers/include_class.rb, line 31 def supports_value_expectations true end