diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2014-08-07 18:26:46 -0500 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2014-08-07 18:26:46 -0500 |
commit | ee34c3018a520bf1271fdbd85ada659900b17ba2 (patch) | |
tree | 79dee940f52453a303daef036bcb9337dd8c21e7 /spec | |
parent | a21383e49ca307e140491524845fffac7a3df2e1 (diff) | |
download | ffi-yajl-ee34c3018a520bf1271fdbd85ada659900b17ba2.tar.gz |
Revert "fix for chef pretty printing issues"
This reverts commit 5d260103d3f11897e7873fb3fa796966896ff946.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/ffi_yajl/json_gem_spec.rb | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/spec/ffi_yajl/json_gem_spec.rb b/spec/ffi_yajl/json_gem_spec.rb index 36233eb..d342fd3 100644 --- a/spec/ffi_yajl/json_gem_spec.rb +++ b/spec/ffi_yajl/json_gem_spec.rb @@ -97,17 +97,6 @@ describe "JSON Gem Compat API" do expect(JSON.pretty_generate({'foo' => 1234}, {})).to eql("{\n \"foo\": 1234\n}") end - class Foo - def to_json(*a) - {'foo' => 1234}.to_json(*a) - end - end - - it "JSON#pretty_generate should work with an Object that implements #to_json" do - f = Foo.new - expect(JSON.pretty_generate(f)).to eql("{\n \"foo\": 1234\n}\n") - end - context "when setting symbolize_keys via JSON.default_options" do after(:each) { JSON.default_options[:symbolize_keys] = false } |