Stop manipulating LOAD_PATH in spec files
but do the same in spec_helper for centralized management. Change-Id: Ib02850b38a199dc523df2a0906b3398096dcc4e2
This commit is contained in:
parent
e3f8c27d91
commit
9351c2ee7e
@ -1,3 +1,6 @@
|
||||
# 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'
|
||||
|
@ -1,19 +1,3 @@
|
||||
#
|
||||
# these tests are a little concerning b/c they are hacking around the
|
||||
# modulepath, so these tests will not catch issues that may eventually arise
|
||||
# related to loading these plugins.
|
||||
# I could not, for the life of me, figure out how to programatcally set the modulepath
|
||||
$LOAD_PATH.push(
|
||||
File.join(
|
||||
File.dirname(__FILE__),
|
||||
'..',
|
||||
'..',
|
||||
'..',
|
||||
'fixtures',
|
||||
'modules',
|
||||
'inifile',
|
||||
'lib')
|
||||
)
|
||||
require 'spec_helper'
|
||||
provider_class = Puppet::Type.type(:openstack_config).provider(:ini_setting)
|
||||
describe provider_class do
|
||||
|
Loading…
x
Reference in New Issue
Block a user