diff options
author | Luke Kanies <luke@madstop.com> | 2008-07-02 00:32:52 -0500 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2008-07-02 00:32:52 -0500 |
commit | 8e4312ed249d83ece754b80e993fa0d86bd36d46 (patch) | |
tree | 8b6044079dbb05a1f84a09a2f8e99cf1b87a3e9e /spec/unit/node | |
parent | 49016bb29312bfeb6f41ce420159e6ffc477eebe (diff) | |
parent | d3a81255245eec19ac21902ae3b877e00e620628 (diff) | |
download | puppet-8e4312ed249d83ece754b80e993fa0d86bd36d46.tar.gz puppet-8e4312ed249d83ece754b80e993fa0d86bd36d46.tar.xz puppet-8e4312ed249d83ece754b80e993fa0d86bd36d46.zip |
Merge branch '0.24.x'
Conflicts:
CHANGELOG
spec/unit/node/catalog.rb
spec/unit/type/package.rb
spec/unit/type/schedule.rb
spec/unit/type/service.rb
spec/unit/util/settings.rb
Diffstat (limited to 'spec/unit/node')
-rwxr-xr-x | spec/unit/node/catalog.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/node/catalog.rb b/spec/unit/node/catalog.rb index f5f092824..42a156286 100755 --- a/spec/unit/node/catalog.rb +++ b/spec/unit/node/catalog.rb @@ -502,6 +502,11 @@ describe Puppet::Node::Catalog, " when functioning as a resource container" do proc { @catalog.alias @one, "one" }.should_not raise_error end + it "should not create aliases that point back to the resource" do + @catalog.alias(@one, "one") + @catalog.resource(:me, "one").should be_nil + end + it "should be able to look resources up by their aliases" do @catalog.add_resource @one @catalog.alias @one, "two" |