spec/stateful_spec.rb in yaml-write-stream-1.0.3 vs spec/stateful_spec.rb in yaml-write-stream-1.0.4
- old
+ new
@@ -29,10 +29,10 @@
stream_writer.write_element('abc')
stream_writer.write_map
stream_writer.write_key_value('def', 'ghi')
stream_writer.close
- expect(stream.string).to eq(utf8("- abc\n- def: ghi\n"))
+ expect(stream.string).to eq(utf8("- abc\n- def: ! \"ghi\"\n"))
expect(stream_writer).to be_closed
expect(stream).to be_closed
end
it 'quotes empty strings' do