Class RSpec::Puppet::ManifestMatchers::ParameterMatcher
In: lib/rspec-puppet/matchers/parameter_matcher.rb
Parent: Object

Methods

matches?   new  

Included Modules

RSpec::Puppet::Errors

Attributes

errors  [R]  @!attribute [r] errors
  @return [Array<Object < StandardError>] All expectation errors
    generated on this parameter.

Public Class methods

@param parameter [Symbol] The specific parameter to check @param value [Object] The expected data to match the parameter against @param type [:should, :not] Whether the given parameter should match

Public Instance methods

Ensure that the actual parameter matches the expected parameter.

@param resource [Hash<Symbol, Object>] A hash representing a Puppet

  resource in the catalog

@return [true, false]

[Validate]