]> git.donarmstrong.com Git - dsa-puppet.git/blob - 3rdparty/modules/keystone/spec/unit/type/keystone_paste_ini_spec.rb
add stackforge/keystone to 3rdparty
[dsa-puppet.git] / 3rdparty / modules / keystone / spec / unit / type / keystone_paste_ini_spec.rb
1 require 'spec_helper'
2 # this hack is required for now to ensure that the path is set up correctly
3 # to retrive the parent provider
4 $LOAD_PATH.push(
5   File.join(
6     File.dirname(__FILE__),
7     '..',
8     '..',
9     'fixtures',
10     'modules',
11     'inifile',
12     'lib')
13 )
14 require 'puppet/type/keystone_paste_ini'
15 describe 'Puppet::Type.type(:keystone_paste_ini)' do
16   before :each do
17     @keystone_paste_ini = Puppet::Type.type(:keystone_paste_ini).new(:name => 'DEFAULT/foo', :value => 'bar')
18   end
19   it 'should accept a valid value' do
20     @keystone_paste_ini[:value] = 'bar'
21     @keystone_paste_ini[:value].should == 'bar'
22   end
23 end