1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
if ENV.fetch('IMPLEMENTATION', 'puppet') == 'puppet'
require 'puppetlabs_spec_helper/module_spec_helper'
else
require 'voxpupuli/test/spec_helper'
end
require 'shared_examples'
require 'puppet-openstack_spec_helper/facts'
fixture_path = File.expand_path(File.join(File.dirname(__FILE__), 'fixtures'))
RSpec.configure do |c|
c.alias_it_should_behave_like_to :it_configures, 'configures'
c.alias_it_should_behave_like_to :it_raises, 'raises'
c.module_path = File.join(fixture_path, 'modules')
end
at_exit { RSpec::Puppet::Coverage.report! }
|