aboutsummaryrefslogblamecommitdiffstats
path: root/activerecord/test/cases/associations/join_dependency_test.rb
blob: 08c166dc33427064c8be96fa010cfdd836f14904 (plain) (tree)
1
2
3
4
5
6
7
8







                                                                                                                                       
require "cases/helper"
require 'models/edge'

class JoinDependencyTest < ActiveRecord::TestCase
  def test_column_names_with_alias_handles_nil_primary_key
    assert_equal Edge.column_names, ActiveRecord::Associations::JoinDependency::JoinBase.new(Edge).column_names_with_alias.map(&:first)
  end
end