Sha256: b9b6aefcc2b2c1ecee83bf3ff71f9503eed795eb67a02d882215380ce55485ac
Contents?: true
Size: 580 Bytes
Versions: 4
Compression:
Stored size: 580 Bytes
Contents
# -*- encoding : utf-8 -*- require 'test_helper' class MultiReadFromCacheTest < ActiveSupport::TestCase def setup @user = User.create :name => 'hooopo', :email => 'hoooopo@gmail.com' @other_user = User.create :name => 'hoooopo', :email => "hooooopo@gmail.com" end def test_multi_read_from_cache result = User.multi_read_from_cache([@user.id, @other_user.id]) assert_equal 2, result.size end def test_multi_read_not_exist_id_from_cache result = User.multi_read_from_cache([@user.id, @other_user.id + 100]) assert_equal 1, result.size end end
Version data entries
4 entries across 4 versions & 1 rubygems