Module: RSpec::Puppet::TypeAliasExampleGroup

Includes:
Support, TypeAliasMatchers
Defined in:
lib/rspec-puppet/example/type_alias_example_group.rb

Instance Attribute Summary

Attributes included from Support

#adapter

Instance Method Summary collapse

Methods included from Support

#build_catalog, #build_catalog_without_cache, #build_code, #class_name, #environment, #escape_special_chars, #facts_hash, #find_pretend_platform, #guess_type_from_path, #import_str, #load_catalogue, #munge_facts, #node_params_hash, #nodename, #param_str, #param_str_from_hash, #post_cond, #pre_cond, #ref, #rspec_compatibility, #sanitise_resource_title, #server_facts_hash, #setup_puppet, #site_pp_str, #str_from_value, #stub_facts!, #stub_file_consts, #test_manifest, #trusted_facts_hash, #with_vardir

Methods included from GenericMatchers

#raise_error

Methods included from TypeAliasMatchers

#allow_value

Instance Method Details

#catalogue(test_value) ⇒ Object



6
7
8
# File 'lib/rspec-puppet/example/type_alias_example_group.rb', line 6

def catalogue(test_value)
  load_catalogue(:type_alias, false, :test_value => test_value)
end

#subjectObject



10
11
12
# File 'lib/rspec-puppet/example/type_alias_example_group.rb', line 10

def subject
  lambda { |test_value| catalogue(test_value) }
end