Sha256: df5b2f5b8df612aa558f5f9d9ba2b468a51bb91fd385b183a278240bee4d2624
Contents?: true
Size: 723 Bytes
Versions: 2
Compression:
Stored size: 723 Bytes
Contents
require 'rubygems' require 'puppet' require 'rspec-puppet' 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 Puppet.parse_config puppet_module_path = Puppet[:modulepath] fixture_path = File.expand_path(File.join(File.dirname(__FILE__), 'fixtures')) RSpec.configure do |c| fixture_module_path = File.join(fixture_path, 'modules') c.module_path = [fixture_module_path, puppet_module_path].join(":") c.manifest_dir = File.join(fixture_path, 'manifests') end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
puppet_module_spec_helper-0.1.1 | lib/puppet_module_spec_helper/spec_helper.rb |
puppet_module_spec_helper-0.1.0 | lib/puppet_module_spec_helper/spec_helper.rb |