spec/spec_helper.rb in json-write-stream-1.0.1 vs spec/spec_helper.rb in json-write-stream-1.0.2
- old
+ new
@@ -15,9 +15,10 @@
def check_roundtrip(obj)
stream = StringIO.new
writer = create_writer(stream)
serialize(obj, writer)
+ writer.close
new_obj = JSON.parse(stream.string)
compare(obj, new_obj)
end
private