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 3 def method_missing(method, *args, &block) return RSpec::Puppet::ManifestMatchers::CreateGeneric.new(method, *args, &block) if method.to_s =~ /^(create|contain)_/ return RSpec::Puppet::ManifestMatchers::CountGeneric.new(nil, args[0], method) if method.to_s =~ /^have_.+_count$/ 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 25 def supports_block_expectations true end
supports_value_expectations()
click to toggle source
# File lib/rspec-puppet/matchers/include_class.rb, line 29 def supports_value_expectations true end