2 # these tests are a little concerning b/c they are hacking around the
3 # modulepath, so these tests will not catch issues that may eventually arise
4 # related to loading these plugins.
5 # I could not, for the life of me, figure out how to programatcally set the modulepath
8 File.dirname(__FILE__),
18 provider_class = Puppet::Type.type(:keystone_paste_ini).provider(:ini_setting)
19 describe provider_class do
21 it 'should allow setting to be set explicitly' do
22 resource = Puppet::Type::Keystone_paste_ini.new(
23 {:name => 'dude/foo', :value => 'bar'}
25 provider = provider_class.new(resource)
26 provider.section.should == 'dude'
27 provider.setting.should == 'foo'