summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-01-29 18:16:16 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-01-29 18:16:16 +0000
commit54c458ce690231980cb8f0c0a691880a4f3b788c (patch)
tree065e6903a741a6d463bb69bdd90afcb25a112b2f /test
parent04017b3399f8e0b2421b38864fa6593dfc3eec78 (diff)
downloadpuppet-54c458ce690231980cb8f0c0a691880a4f3b788c.tar.gz
puppet-54c458ce690231980cb8f0c0a691880a4f3b788c.tar.xz
puppet-54c458ce690231980cb8f0c0a691880a4f3b788c.zip
Fixing #438.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2112 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test')
-rwxr-xr-xtest/types/file.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/types/file.rb b/test/types/file.rb
index e1cb06978..0e9fff23a 100755
--- a/test/types/file.rb
+++ b/test/types/file.rb
@@ -1932,6 +1932,22 @@ class TestFile < Test::Unit::TestCase
assert(Puppet::Type.type(:file)[path], "could not look up file via path %s" % path)
end
end
+
+ # Testing #438
+ def test_creating_states_conflict
+ file = tempfile()
+ first = tempfile()
+ second = tempfile()
+ params = [:content, :source, :target]
+ params.each do |param|
+ params.each do |other|
+ next if other == param
+ assert_raise(Puppet::Error, "%s and %s did not conflict" % [param, other]) do
+ Puppet::Type.newfile(:path => file, other => first, param => second)
+ end
+ end
+ end
+ end
end
# $Id$