summaryrefslogtreecommitdiff
path: root/lib/chef_zero/rspec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef_zero/rspec.rb')
-rw-r--r--lib/chef_zero/rspec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef_zero/rspec.rb b/lib/chef_zero/rspec.rb
index 5d702d6..3c4b502 100644
--- a/lib/chef_zero/rspec.rb
+++ b/lib/chef_zero/rspec.rb
@@ -265,7 +265,7 @@ module ChefZero
if data.is_a?(String)
data
else
- JSON.pretty_generate(data)
+ FFI_Yajl::Encoder.encode(data, :pretty => true)
end
end