Sha256: 51de414c47be31a753c8df4d5f62de0bf1b6ef33aae66cf3552640d81867810d
Contents?: true
Size: 795 Bytes
Versions: 3
Compression:
Stored size: 795 Bytes
Contents
require 'rspec-puppet' require 'puppetlabs_spec_helper/puppet_spec_helper' require 'puppetlabs_spec_helper/puppetlabs_spec/puppet_internals' def param_value(subject, type, title, param) subject.resource(type, title).send(:parameters)[param.to_sym] end def verify_contents(subject, title, expected_lines) content = subject.resource('file', title).send(:parameters)[:content] (content.split("\n") & expected_lines).should == expected_lines end fixture_path = File.expand_path(File.join(Dir.pwd, 'spec/fixtures')) env_module_path = ENV['MODULEPATH'] module_path = File.join(fixture_path, 'modules') module_path = [module_path, env_module_path].join(':') if env_module_path RSpec.configure do |c| c.module_path = module_path c.manifest_dir = File.join(fixture_path, 'manifests') end
Version data entries
3 entries across 3 versions & 1 rubygems