diff options
author | Luke Kanies <luke@madstop.com> | 2009-02-20 11:26:01 -0600 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2009-02-20 11:26:01 -0600 |
commit | 417b5a5f4b4a01259b42f3b787c471b7f973e0b3 (patch) | |
tree | a0078baa925b92d4eef54480d7ee6bba1a5705d2 /spec/unit | |
parent | 602409e18c5b3229f6d239ac28472dd4709a117b (diff) | |
download | puppet-417b5a5f4b4a01259b42f3b787c471b7f973e0b3.tar.gz puppet-417b5a5f4b4a01259b42f3b787c471b7f973e0b3.tar.xz puppet-417b5a5f4b4a01259b42f3b787c471b7f973e0b3.zip |
Fixing #1904 - aliases are no longer inherited by child files
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec/unit')
-rwxr-xr-x | spec/unit/type/file.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/type/file.rb b/spec/unit/type/file.rb index 1bd049b5f..01199d0d0 100755 --- a/spec/unit/type/file.rb +++ b/spec/unit/type/file.rb @@ -598,9 +598,9 @@ describe Puppet::Type.type(:file) do @file.newchild("my/path") end - {:recurse => true, :target => "/foo/bar", :ensure => :present}.each do |param, value| + {:recurse => true, :target => "/foo/bar", :ensure => :present, :alias => "yay"}.each do |param, value| it "should not pass on #{param} to the sub resource" do - @file[param] = value + @file = Puppet::Type::File.new(:name => @path, param => value, :catalog => @catalog) @file.class.expects(:new).with { |params| params[param].nil? } |