summaryrefslogtreecommitdiff
path: root/spec/unit/ssl/host_spec.rb
diff options
context:
space:
mode:
authorErik Dalén <dalen@spotify.com>2014-01-27 15:03:59 +0100
committerErik Dalén <dalen@spotify.com>2014-02-06 14:46:01 +0100
commit39c2fdffa9d6e6ed8ff932cc742c1b71e7b9d051 (patch)
treeb7807857f5e69ccb900ffa35d3d00b22e4a2d327 /spec/unit/ssl/host_spec.rb
parentc87f1fe9c639323202a40c8c2a915ebf1c08971f (diff)
downloadpuppet-39c2fdffa9d6e6ed8ff932cc742c1b71e7b9d051.tar.gz
(maint) Change name from from_pson to from_data_hash
This is because these methods are also used for deserialization from other formats than PSON. The method for serializing a object is called to_data_hash, so makes sense to call this from_data_hash.
Diffstat (limited to 'spec/unit/ssl/host_spec.rb')
-rwxr-xr-xspec/unit/ssl/host_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/ssl/host_spec.rb b/spec/unit/ssl/host_spec.rb
index a9ab9b51e..a80fe9205 100755
--- a/spec/unit/ssl/host_spec.rb
+++ b/spec/unit/ssl/host_spec.rb
@@ -931,7 +931,7 @@ describe Puppet::SSL::Host do
"name" => host.name,
"desired_state" => host.desired_state,
}
- generated_host = Puppet::SSL::Host.from_pson(pson_hash)
+ generated_host = Puppet::SSL::Host.from_data_hash(pson_hash)
generated_host.desired_state.should == host.desired_state
generated_host.name.should == host.name
end