diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2014-08-07 12:12:41 -0400 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2014-08-07 12:12:41 -0400 |
commit | 24922dbf881adf72ad828b24eb616c92ce96fb17 (patch) | |
tree | ba2daaf200b7e40845764976c01d5f2545aa847c /spec/ffi_yajl | |
parent | 3d63d763184980f2423f11070c8b1b4001c2a495 (diff) | |
download | ffi-yajl-24922dbf881adf72ad828b24eb616c92ce96fb17.tar.gz |
change allow_comment default to true
this matches yajl-ruby's default and fixes a regression in Chef
where we stopped accepting comments.
Diffstat (limited to 'spec/ffi_yajl')
-rw-r--r-- | spec/ffi_yajl/parser_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
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 |