summaryrefslogtreecommitdiffstats
path: root/test/lib
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-05-01 03:14:09 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-05-01 03:14:09 +0000
commit64382700d8bb42d281cea47078c53dce33e0c2cb (patch)
tree207a415461127af0b6598aba807673f6ec59329f /test/lib
parentc9de332e8ab75f234d79e2dc8a3fcd2949a1f224 (diff)
downloadpuppet-64382700d8bb42d281cea47078c53dce33e0c2cb.tar.gz
puppet-64382700d8bb42d281cea47078c53dce33e0c2cb.tar.xz
puppet-64382700d8bb42d281cea47078c53dce33e0c2cb.zip
Adding a "supports_parameter?" method to test whether a given provider supports the features required by a given parameter. This is used during attribute instance creation, but its creation was necessicated by test code.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2444 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/puppettest/fakes.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lib/puppettest/fakes.rb b/test/lib/puppettest/fakes.rb
index ca47268c8..ec5d88fde 100644
--- a/test/lib/puppettest/fakes.rb
+++ b/test/lib/puppettest/fakes.rb
@@ -114,6 +114,10 @@ module PuppetTest
end
end
+ def self.supports_parameter?(param)
+ true
+ end
+
def self.suitable?
true
end