summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authortyler-ball <tyleraball@gmail.com>2014-10-07 10:54:54 -0700
committertyler-ball <tyleraball@gmail.com>2014-10-07 10:54:54 -0700
commit31df485a023364383353dabb97f9f0609ceddde6 (patch)
treed2b7bb7e620640c02c2ac27a7b634c2b3c8d30af /spec
parent3af1ec06bd861bf0eb01863cbe02dffadbf45503 (diff)
downloadffi-yajl-31df485a023364383353dabb97f9f0609ceddde6.tar.gz
Making necessary C changes to only call to_json if it is present
Diffstat (limited to 'spec')
-rw-r--r--spec/ffi_yajl/encoder_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ffi_yajl/encoder_spec.rb b/spec/ffi_yajl/encoder_spec.rb
index f89e3a1..02bc020 100644
--- a/spec/ffi_yajl/encoder_spec.rb
+++ b/spec/ffi_yajl/encoder_spec.rb
@@ -96,7 +96,7 @@ describe "FFI_Yajl::Encoder" do
end
it "calls .to_s for objects without .to_json" do
- expect(encoder.encode(NoToJson.new)).to match(/#<NoToJson:\w+>/)
+ expect(encoder.encode(NoToJson.new)).to match(/^"#<NoToJson:\w+>"$/)
end
it "calls .to_json for objects wit .to_json" do