Sha256: de42ba6b15c0e06759678d48a93865326d9828909da89873147474d1f01ad436

Contents?: true

Size: 758 Bytes

Versions: 1

Compression:

Stored size: 758 Bytes

Contents

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

require 'active_record'
require 'memcached_store'
require_relative 'serialization_format'
require_relative 'cache'
require_relative 'database_connection'
require_relative 'active_record_objects'
require 'identity_cache'

if ENV['BOXEN_HOME'].present?
  $memcached_port = 21211
  $mysql_port = 13306
else
  $memcached_port = 11211
  $mysql_port = 3306
end

include SerializationFormat
include ActiveRecordObjects

DatabaseConnection.setup
DatabaseConnection.drop_tables
DatabaseConnection.create_tables
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

1 entries across 1 versions & 1 rubygems

Version Path
identity_cache-0.1.0 test/helpers/update_serialization_format.rb