summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-08-07 12:12:41 -0400
committerLamont Granquist <lamont@scriptkiddie.org>2014-08-07 12:12:41 -0400
commit24922dbf881adf72ad828b24eb616c92ce96fb17 (patch)
treeba2daaf200b7e40845764976c01d5f2545aa847c /spec
parent3d63d763184980f2423f11070c8b1b4001c2a495 (diff)
downloadffi-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')
-rw-r--r--spec/ffi_yajl/parser_spec.rb8
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