| 12345678910111213141516171819202122232425262728 |
- require 'rspec-puppet'
- require 'puppetlabs_spec_helper/module_spec_helper'
- begin
- require 'coveralls'
- Coveralls.wear!
- rescue LoadError
- puts "No Coveralls support"
- end
- fixture_path = File.expand_path(File.join(__FILE__, '..', 'fixtures'))
- # include common helpers
- support_path = File.expand_path(File.join(File.dirname(__FILE__), '..','spec/support/*.rb'))
- Dir[support_path].each {|f| require f}
- RSpec.configure do |c|
- c.config = '/doesnotexist'
- c.module_path = File.expand_path(File.join(File.dirname(__FILE__), 'fixtures/modules'))
- c.manifest_dir = File.expand_path(File.join(File.dirname(__FILE__), 'fixtures/manifests'))
- end
- def param_value(subject, type, title, param)
- subject.resource(type, title).send(:parameters)[param.to_sym]
- end
- at_exit { RSpec::Puppet::Coverage.report! }
|