Sha256: b512c4be3034fd7c0eca2f952b53cf95199836b8c5808e4819bb1dd6aa7d1149
Contents?: true
Size: 407 Bytes
Versions: 14
Compression:
Stored size: 407 Bytes
Contents
require 'spec_helper' module Polyamorous describe "ActiveRecord Compatibility" do it 'works with self joins and includes' do trade_account = Account.create! Account.create!(trade_account: trade_account) accounts = Account.joins(:trade_account).includes(:trade_account, :agent_account) account = accounts.first expect(account.agent_account).to be_nil end end end
Version data entries
14 entries across 13 versions & 2 rubygems