Sha256: b4bbeebe38ed79012978b211b571fc77290514c8b8db7c336e2a8e0ecc97cf93
Contents?: true
Size: 611 Bytes
Versions: 6
Compression:
Stored size: 611 Bytes
Contents
require "test_helper" class CacheKeeper::MarshalSerializerTest < ActiveSupport::TestCase test "serializes the marshal dump" do target = Recording.new serialized = serializer.serialize(target) assert_equal serialized["dump"], Marshal.dump(target).force_encoding("ISO-8859-1").encode("UTF-8") end test "deserializes the marshal dump" do target = Recording.new serialized = serializer.serialize(target) deserialized = serializer.deserialize(serialized) assert_equal Recording, deserialized.class end private def serializer CacheKeeper::MarshalSerializer end end
Version data entries
6 entries across 6 versions & 1 rubygems