Sha256: 6f0ce4b8962cd3564eaf94acf7bccc94705883d1de914c217957c7e91920b9c1
Contents?: true
Size: 576 Bytes
Versions: 2
Compression:
Stored size: 576 Bytes
Contents
require "cases/helper" module ActiveRecord class CacheKeyTest < ActiveRecord::TestCase self.use_transactional_tests = false class CacheMe < ActiveRecord::Base; end setup do @connection = ActiveRecord::Base.connection @connection.create_table(:cache_mes) { |t| t.timestamps } end teardown do @connection.drop_table :cache_mes, if_exists: true end test "test_cache_key_format_is_not_too_precise" do record = CacheMe.create key = record.cache_key assert_equal key, record.reload.cache_key end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ibm_db-4.0.0-x86-mingw32 | test/cases/cache_key_test.rb |
ibm_db-4.0.0 | test/cases/cache_key_test.rb |