Sha256: 3bb40c07daecca5aa1abcd34556a3518943f54fb9c19d32000369c12257cf9d2

Contents?: true

Size: 587 Bytes

Versions: 18

Compression:

Stored size: 587 Bytes

Contents

require "test_helper"
require "helpers/serialization_format"

class SerializationFormatChangeTest < IdentityCache::TestCase
  include SerializationFormat

  MESSAGE = "serialization format changed => increment IdentityCache.CACHE_VERSION and run rake update_serialization_format"

  def test_serialization_format_has_not_changed
    serialization = Marshal.load(serialize(serialized_record))
    preserialization = Marshal.load(File.binread(serialized_record_file))
    assert_equal(preserialization, serialization, MESSAGE)
  rescue SystemCallError
    assert(false, MESSAGE)
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
identity_cache-0.5.1 test/serialization_format_change_test.rb
identity_cache-0.5.0 test/serialization_format_change_test.rb
identity_cache-0.4.1 test/serialization_format_change_test.rb
identity_cache-0.4.0 test/serialization_format_change_test.rb
identity_cache-0.3.2 test/serialization_format_change_test.rb
identity_cache-0.3.1 test/serialization_format_change_test.rb
identity_cache-0.3.0 test/serialization_format_change_test.rb
identity_cache-0.2.5 test/serialization_format_change_test.rb
identity_cache-0.2.4 test/serialization_format_change_test.rb
identity_cache-0.2.3 test/serialization_format_change_test.rb
identity_cache-0.2.2 test/serialization_format_change_test.rb
identity_cache-0.2.1 test/serialization_format_change_test.rb
identity_cache-0.2.0 test/serialization_format_change_test.rb
identity_cache-0.1.0 test/serialization_format_change_test.rb
identity_cache-0.0.7 test/serialization_format_change_test.rb
identity_cache-0.0.6 test/serialization_format_change_test.rb
identity_cache-0.0.5 test/serialization_format_change_test.rb
identity_cache-0.0.4 test/serialization_format_change_test.rb