summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-11-19 16:30:20 -0600
committerLuke Kanies <luke@madstop.com>2007-11-19 16:30:20 -0600
commit1bf3999ec08f41e35036b303914987e2c0174922 (patch)
tree9e9da2028b357fddb23dcd07f46d7dcf89ad1dd1 /test
parent3f0b250f6694525fbcc40414cf0778186696b2ee (diff)
downloadpuppet-1bf3999ec08f41e35036b303914987e2c0174922.tar.gz
puppet-1bf3999ec08f41e35036b303914987e2c0174922.tar.xz
puppet-1bf3999ec08f41e35036b303914987e2c0174922.zip
Fixing a failing test from my fix for #446 -- I had changed
the behaviour of Resource#override_parameter unintentionally. I've corrected the comments so it's clear why the original behaviour was there.
Diffstat (limited to 'test')
-rwxr-xr-xtest/language/resource.rb14
1 files changed, 0 insertions, 14 deletions
diff --git a/test/language/resource.rb b/test/language/resource.rb
index 942277bd1..8ad3e62f1 100755
--- a/test/language/resource.rb
+++ b/test/language/resource.rb
@@ -317,20 +317,6 @@ class TestResource < PuppetTest::TestCase
assert_equal(false, res.builtin?)
end
- def test_add_metaparams
- res = mkresource
- params = res.instance_variable_get("@params")
- params[:a] = :b
- Puppet::Type.expects(:eachmetaparam).multiple_yields(:a, :b, :c)
- res.scope.expects(:lookupvar).with("b", false).returns(:something)
- res.scope.expects(:lookupvar).with("c", false).returns(:undefined)
- res.expects(:set_parameter).with(:b, :something)
-
- res.send(:add_metaparams)
-
- assert_nil(params[:c], "A value was created somehow for an unset metaparam")
- end
-
def test_reference_conversion
# First try it as a normal string
ref = Parser::Resource::Reference.new(:type => "file", :title => "/tmp/ref1")