Sha256: a9d421f0dabfa15c8bcc30f394e25918b1d14cf2494bc9b1c42b8ae9dc2a925d
Contents?: true
Size: 566 Bytes
Versions: 7
Compression:
Stored size: 566 Bytes
Contents
require "test_helper" class CacheKeeper::NewInstanceSerializerTest < ActiveSupport::TestCase test "serializes the class name" do serialized = serializer.serialize(RecordingsController.new) assert_equal serialized["klass"], "RecordingsController" end test "deserializes the class name" do serialized = serializer.serialize(RecordingsController.new) deserialized = serializer.deserialize(serialized) assert_equal RecordingsController, deserialized.class end private def serializer CacheKeeper::NewInstanceSerializer end end
Version data entries
7 entries across 7 versions & 1 rubygems