diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2014-08-11 13:44:04 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2014-08-11 13:44:04 -0700 |
commit | b22c9f9cd0edd08ce7f59194afd7cb02a914c1be (patch) | |
tree | 382bde7ab8cd4c55bdf78ef738129f8ca596d708 | |
parent | 5c057c2916ae4b6dfe99b790038e09e138fcc01d (diff) | |
download | chef-b22c9f9cd0edd08ce7f59194afd7cb02a914c1be.tar.gz |
fix specs broken due to JSON monkeypatching issues
yajl/ffi-yajl vs JSON whitespace issues
-rw-r--r-- | spec/unit/json_compat_spec.rb | 2 | ||||
-rw-r--r-- | spec/unit/knife/node_show_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/json_compat_spec.rb b/spec/unit/json_compat_spec.rb index c0fb8be6ac..6d262734fd 100644 --- a/spec/unit/json_compat_spec.rb +++ b/spec/unit/json_compat_spec.rb @@ -48,7 +48,7 @@ describe Chef::JSONCompat do it "should work" do f = Foo.new - expect(Chef::JSONCompat.to_json_pretty(f)).to eql("{\n \"foo\": 1234\n}") + expect(Chef::JSONCompat.to_json_pretty(f)).to eql("{\n \"foo\": 1234\n}\n") end end diff --git a/spec/unit/knife/node_show_spec.rb b/spec/unit/knife/node_show_spec.rb index 4ecf2778e6..4806354b60 100644 --- a/spec/unit/knife/node_show_spec.rb +++ b/spec/unit/knife/node_show_spec.rb @@ -59,7 +59,7 @@ describe Chef::Knife::NodeShow do allow(knife.ui).to receive(:stdout).and_return(stdout) expect(Chef::Node).to receive(:load).with('adam').and_return(node) knife.run - expect(stdout.string).to eql("{\n \"name\": \"adam\",\n \"chef_environment\": \"_default\",\n \"run_list\": [\n\n ],\n \"normal\": {\n }\n}\n") + expect(stdout.string).to eql("{\n \"name\": \"adam\",\n \"chef_environment\": \"_default\",\n \"run_list\": [\n\n]\n,\n \"normal\": {\n\n }\n}\n") end end end |