Sha256: 82042f2637c49c8a03ed8b2feb18874647933613feb3af38a8e8d7cad0739611

Contents?: true

Size: 813 Bytes

Versions: 8

Compression:

Stored size: 813 Bytes

Contents

$LOAD_PATH.unshift File.expand_path("../../../lib", __FILE__)

require 'logger'
require 'active_record'
require 'memcached_store'
require 'active_support/cache/memcached_store'
require_relative 'serialization_format'
require_relative 'database_connection'
require_relative 'active_record_objects'
require 'identity_cache'

include SerializationFormat
include ActiveRecordObjects

DatabaseConnection.setup
DatabaseConnection.drop_tables
DatabaseConnection.create_tables
IdentityCache.logger = Logger.new(nil)
IdentityCache.cache_backend = ActiveSupport::Cache::MemcachedStore.new("localhost:11211", :support_cas => true)
setup_models
File.open(serialized_record_file, 'w') {|file| serialize(serialized_record, file) }
puts "Serialized record to #{serialized_record_file}"
IdentityCache.cache.clear
teardown_models

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
identity_cache-0.4.1 test/helpers/update_serialization_format.rb
identity_cache-0.4.0 test/helpers/update_serialization_format.rb
identity_cache-0.3.2 test/helpers/update_serialization_format.rb
identity_cache-0.3.1 test/helpers/update_serialization_format.rb
identity_cache-0.3.0 test/helpers/update_serialization_format.rb
identity_cache-0.2.5 test/helpers/update_serialization_format.rb
identity_cache-0.2.4 test/helpers/update_serialization_format.rb
identity_cache-0.2.3 test/helpers/update_serialization_format.rb