Sha256: a686b0b21e8d74e88b043ff9cac474cbed99751a615c3e6d4170bca0d8ee90e1

Contents?: true

Size: 581 Bytes

Versions: 6

Compression:

Stored size: 581 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

6 entries across 6 versions & 1 rubygems

Version Path
ibm_db-5.2.0 test/cases/cache_key_test.rb
ibm_db-5.1.0 test/cases/cache_key_test.rb
ibm_db-5.0.5 test/cases/cache_key_test.rb
ibm_db-5.0.4 test/cases/cache_key_test.rb
ibm_db-5.0.3 test/cases/cache_key_test.rb
ibm_db-5.0.2 test/cases/cache_key_test.rb