diff options
author | Stig Sandbeck Mathisen <ssm@debian.org> | 2014-09-07 10:14:36 +0200 |
---|---|---|
committer | Stig Sandbeck Mathisen <ssm@debian.org> | 2014-09-07 10:14:36 +0200 |
commit | d4b83be375ac1dead058e091191ee7c7b7c24c8a (patch) | |
tree | dc825687392ae3068de5b764be60c53122d9e02a /spec/unit/node_spec.rb | |
parent | 229cbb976fe0f70f5f30548b83517b415840f9bb (diff) | |
parent | 1681684857c6e39d60d87b0b3520d8783977ceff (diff) | |
download | puppet-upstream/3.7.0.tar.gz |
Imported Upstream version 3.7.0upstream/3.7.0
Diffstat (limited to 'spec/unit/node_spec.rb')
-rwxr-xr-x | spec/unit/node_spec.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/spec/unit/node_spec.rb b/spec/unit/node_spec.rb index 85ec6e127..2de2b8279 100755 --- a/spec/unit/node_spec.rb +++ b/spec/unit/node_spec.rb @@ -157,11 +157,9 @@ describe Puppet::Node do Puppet::Node.should read_json_attribute('parameters').from(@node.to_pson).as({"a" => "b", "c" => "d"}) end - it "should include the environment" do - Puppet.override(:environments => env_loader) do - @node.environment = environment - Puppet::Node.should read_json_attribute('environment').from(@node.to_pson).as(environment) - end + it "deserializes environment to environment_name as a string" do + @node.environment = environment + Puppet::Node.should read_json_attribute('environment_name').from(@node.to_pson).as('bar') end end end |