Sha256: 4a926a1c998656f2e036ddc09d90bda5df11a2c9c7e06c647bdeb75fe08d1e06
Contents?: true
Size: 394 Bytes
Versions: 2
Compression:
Stored size: 394 Bytes
Contents
# -*- encoding : utf-8 -*- require 'active_record/test_helper' class ActiveRecord::HasOneAssociationTest < Test::Unit::TestCase def setup @user = User.create :name => 'hooopo', :email => 'hoooopo@gmail.com' @account = @user.create_account end def test_should_fetch_account_from_cache clean_user = @user.reload no_connection do clean_user.account end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
second_level_cache-2.0.0 | test/active_record/has_one_association_test.rb |
second_level_cache-2.0.0.rc1 | test/active_record/has_one_association_test.rb |