spec/lib/aggro/file_store/reader_spec.rb in aggro-0.0.3 vs spec/lib/aggro/file_store/reader_spec.rb in aggro-0.0.4
- old
+ new
@@ -2,10 +2,11 @@
subject(:reader) { FileStore::Reader.new data_io, index_io }
let(:data) { { one: 9000, two: 'pizza', three: ['foo', 123] } }
let(:existing_event) { Event.new :tested_pizza, Time.new(2014), data }
- let(:data_content) { EventSerializer.serialize(existing_event) }
+ let(:raw_content) { EventSerializer.serialize(existing_event) }
+ let(:data_content) { Marshal.dump raw_content }
let(:index_content) { Marshal.dump data_content.bytesize }
let(:data_io) { StringIO.new(data_content, 'rb') }
let(:index_io) { StringIO.new(index_content, 'rb') }