From 24922dbf881adf72ad828b24eb616c92ce96fb17 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Thu, 7 Aug 2014 12:12:41 -0400 Subject: change allow_comment default to true this matches yajl-ruby's default and fixes a regression in Chef where we stopped accepting comments. --- spec/ffi_yajl/parser_spec.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'spec') diff --git a/spec/ffi_yajl/parser_spec.rb b/spec/ffi_yajl/parser_spec.rb index f896bf7..c6ca3e4 100644 --- a/spec/ffi_yajl/parser_spec.rb +++ b/spec/ffi_yajl/parser_spec.rb @@ -32,6 +32,14 @@ describe "FFI_Yajl::Parser" do expect(parser).to eq({"key"=>"value"}) end end + + context "by default" do + let(:options) { } + + it "should parse" do + expect(parser).to eq({"key"=>"value"}) + end + end end context "when json has multiline comments" do -- cgit v1.2.1