Sha256: 1b13b7ad758c8ca85278f9c328193195bc60e0cb7dce7330b0b9f494687f7ae7

Contents?: true

Size: 388 Bytes

Versions: 2

Compression:

Stored size: 388 Bytes

Contents

# -*- encoding : utf-8 -*-
require 'active_record/test_helper'

class ActiveRecord::HasOneAssociationTest < Minitest::Test
  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.1.0.rc2 test/active_record/has_one_association_test.rb
second_level_cache-2.1.0.rc1 test/active_record/has_one_association_test.rb