]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - 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
diff --git a/3rdparty/modules/keystone/spec/unit/type/keystone_paste_ini_spec.rb b/3rdparty/modules/keystone/spec/unit/type/keystone_paste_ini_spec.rb
new file mode 100644 (file)
index 0000000..98f7157
--- /dev/null
@@ -0,0 +1,23 @@
+require 'spec_helper'
+# this hack is required for now to ensure that the path is set up correctly
+# to retrive the parent provider
+$LOAD_PATH.push(
+  File.join(
+    File.dirname(__FILE__),
+    '..',
+    '..',
+    'fixtures',
+    'modules',
+    'inifile',
+    'lib')
+)
+require 'puppet/type/keystone_paste_ini'
+describe 'Puppet::Type.type(:keystone_paste_ini)' do
+  before :each do
+    @keystone_paste_ini = Puppet::Type.type(:keystone_paste_ini).new(:name => 'DEFAULT/foo', :value => 'bar')
+  end
+  it 'should accept a valid value' do
+    @keystone_paste_ini[:value] = 'bar'
+    @keystone_paste_ini[:value].should == 'bar'
+  end
+end