diff options
author | Thom May <thom@may.lt> | 2016-01-14 17:03:01 +0000 |
---|---|---|
committer | Thom May <thom@may.lt> | 2016-01-14 17:03:01 +0000 |
commit | 652c10fd512997a1fe160537c45072dbf0f528de (patch) | |
tree | 8767cb9703bd0ced568b9541c59e5147745a03e9 | |
parent | e245519d02c3de655e9ddf8e833275719dc35af9 (diff) | |
parent | 764c1da12e9a408abb2d048828ee559c439642d0 (diff) | |
download | chef-652c10fd512997a1fe160537c45072dbf0f528de.tar.gz |
Merge pull request #4405 from chef/tm/fix_failing_test
ServerAPI will return a raw hash, so do that
-rw-r--r-- | spec/unit/client_spec.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/unit/client_spec.rb b/spec/unit/client_spec.rb index e41c092ae5..8ac62cce2b 100644 --- a/spec/unit/client_spec.rb +++ b/spec/unit/client_spec.rb @@ -369,8 +369,7 @@ describe Chef::Client do expect(node.chef_environment).to eq("_default") Chef::Config[:environment] = "A" - test_env = Chef::Environment.new - test_env.name("A") + test_env = {"name" => "A"} mock_chef_rest = double("Chef::ServerAPI") expect(mock_chef_rest).to receive(:get).with("environments/A").and_return(test_env) |