summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2016-01-14 16:19:22 +0000
committerThom May <thom@chef.io>2016-01-14 16:19:22 +0000
commit764c1da12e9a408abb2d048828ee559c439642d0 (patch)
tree8767cb9703bd0ced568b9541c59e5147745a03e9
parente245519d02c3de655e9ddf8e833275719dc35af9 (diff)
downloadchef-tm/fix_failing_test.tar.gz
ServerAPI will return a raw hash, so do thattm/fix_failing_test
-rw-r--r--spec/unit/client_spec.rb3
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)