summaryrefslogtreecommitdiffstats
path: root/spec/unit/resource/status_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/resource/status_spec.rb')
-rwxr-xr-xspec/unit/resource/status_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/unit/resource/status_spec.rb b/spec/unit/resource/status_spec.rb
index 3d9a84152..815f799a2 100755
--- a/spec/unit/resource/status_spec.rb
+++ b/spec/unit/resource/status_spec.rb
@@ -135,4 +135,14 @@ describe Puppet::Resource::Status do
@status.out_of_sync.should == true
end
end
+
+ describe "When converting to YAML" do
+ it "should include only documented attributes" do
+ @status.file = "/foo.rb"
+ @status.line = 27
+ @status.evaluation_time = 2.7
+ @status.tags = %w{one two}
+ @status.to_yaml_properties.should == Puppet::Resource::Status::YAML_ATTRIBUTES.sort
+ end
+ end
end