]> git.donarmstrong.com Git - dsa-puppet.git/blob - 3rdparty/modules/keystone/spec/unit/provider/keystone_paste_ini/ini_setting_spec.rb
Make varnish log rotation less noisy
[dsa-puppet.git] / 3rdparty / modules / keystone / spec / unit / provider / keystone_paste_ini / ini_setting_spec.rb
1 #
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
6 $LOAD_PATH.push(
7   File.join(
8     File.dirname(__FILE__),
9     '..',
10     '..',
11     '..',
12     'fixtures',
13     'modules',
14     'inifile',
15     'lib')
16 )
17 require 'spec_helper'
18 provider_class = Puppet::Type.type(:keystone_paste_ini).provider(:ini_setting)
19 describe provider_class do
20
21   it 'should allow setting to be set explicitly' do
22     resource = Puppet::Type::Keystone_paste_ini.new(
23       {:name => 'dude/foo', :value => 'bar'}
24     )
25     provider = provider_class.new(resource)
26     provider.section.should == 'dude'
27     provider.setting.should == 'foo'
28   end
29 end