summaryrefslogtreecommitdiff
path: root/spec/data
diff options
context:
space:
mode:
authortyler-ball <tyleraball@gmail.com>2014-09-26 13:09:30 -0700
committertyler-ball <tyleraball@gmail.com>2014-10-07 16:40:38 -0700
commitd43b35014e18e0cc2ebae6e482f8a2b5a00c4fab (patch)
treee4089af21e4d465f2b9c5464121b2d93e5667c43 /spec/data
parentcfd9d2efea9581126881598ec68a117121b61b8a (diff)
downloadchef-d43b35014e18e0cc2ebae6e482f8a2b5a00c4fab.tar.gz
Fixing some more changes I missed
Diffstat (limited to 'spec/data')
-rw-r--r--spec/data/bootstrap/test-hints.erb2
-rw-r--r--spec/data/bootstrap/test.erb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/data/bootstrap/test-hints.erb b/spec/data/bootstrap/test-hints.erb
index 29ba710b42..7693fdc7c9 100644
--- a/spec/data/bootstrap/test-hints.erb
+++ b/spec/data/bootstrap/test-hints.erb
@@ -6,7 +6,7 @@ mkdir -p /etc/chef/ohai/hints
<% @chef_config[:knife][:hints].each do |name, hash| -%>
(
cat <<'EOP'
-<%= hash.to_json %>
+<%= Chef::JSONCompat.to_json(hash) %>
EOP
) > /etc/chef/ohai/hints/<%= name %>.json
<% end -%>
diff --git a/spec/data/bootstrap/test.erb b/spec/data/bootstrap/test.erb
index 7cdc7dfdd0..3a383b47d0 100644
--- a/spec/data/bootstrap/test.erb
+++ b/spec/data/bootstrap/test.erb
@@ -1 +1 @@
-<%= first_boot.to_json %> \ No newline at end of file
+<%= Chef::JSONCompat.to_json(first_boot) %>