Files
puppet-openstacklib/spec/spec_helper.rb
Takashi Kajinami 9351c2ee7e Stop manipulating LOAD_PATH in spec files
but do the same in spec_helper for centralized management.

Change-Id: Ib02850b38a199dc523df2a0906b3398096dcc4e2
2024-09-17 00:37:15 +09:00

18 lines
647 B
Ruby

# Load libraries here to simulate how they live together in a real puppet run (for provider unit tests)
$LOAD_PATH.push(File.join(File.dirname(__FILE__), 'fixtures', 'modules', 'inifile', 'lib'))
require 'puppetlabs_spec_helper/module_spec_helper'
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! }