summaryrefslogtreecommitdiffstats
path: root/spec/unit
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2009-04-21 17:12:42 -0500
committerLuke Kanies <luke@madstop.com>2009-04-21 17:12:42 -0500
commit8d0e9976b199a637d82d70701db6c682a89b9d6a (patch)
tree6378ac505c4b93015dbca1d02269e6de8e92cc8b /spec/unit
parent4e0de3881b55a728ee54e1cab5d3b9a6ab52a5a9 (diff)
downloadpuppet-8d0e9976b199a637d82d70701db6c682a89b9d6a.tar.gz
puppet-8d0e9976b199a637d82d70701db6c682a89b9d6a.tar.xz
puppet-8d0e9976b199a637d82d70701db6c682a89b9d6a.zip
Fixing #2180 - Catalogs yaml dump the resource table first
This fixes a ruby bug (http://rubyforge.org/tracker/?group_id=426&atid=1698&func=detail&aid=8886) that otherwise results in yaml producing text it can't read back in. Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec/unit')
-rwxr-xr-xspec/unit/resource/catalog.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/unit/resource/catalog.rb b/spec/unit/resource/catalog.rb
index 6a5922e2e..d51f8fbd7 100755
--- a/spec/unit/resource/catalog.rb
+++ b/spec/unit/resource/catalog.rb
@@ -801,6 +801,10 @@ describe Puppet::Resource::Catalog, "when compiling" do
it "should be able to be dumped to yaml" do
YAML.dump(@catalog).should be_instance_of(String)
end
+
+ it "should always have its resource table first in its yaml property list" do
+ @catalog.to_yaml_properties[0].should == "@resource_table"
+ end
end
describe "when converting from yaml" do