Sha256: c166da2d6444dfe20bf0d9399e78ff5354f57341f0f50a3af6a9f15cdbf09749
Contents?: true
Size: 729 Bytes
Versions: 1
Compression:
Stored size: 729 Bytes
Contents
require 'rspec-puppet' require 'puppetlabs_spec_helper/puppet_spec_helper' 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
puppetlabs_spec_helper-0.2.0 | lib/puppetlabs_spec_helper/module_spec_helper.rb |