46fe2371c96ac7301a50a8575c465fbdfab0ff88
[puppet-modules/puppetlabs-apt.git] / spec / spec_helper.rb
1 require 'rubygems'
2 require 'puppet'
3 require 'rspec-puppet'
4
5 def param_value(subject, type, title, param)
6   subject.resource(type, title).send(:parameters)[param.to_sym]
7 end
8
9 fixture_path = File.expand_path(File.join(File.dirname(__FILE__), 'fixtures'))
10
11 RSpec.configure do |c|
12   c.module_path = File.join(fixture_path, 'modules')
13   c.manifest_dir = File.join(fixture_path, 'manifests')
14 end