diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/ffi_yajl/encoder_spec.rb | 2 |
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 |