Sha256: c2191f1fca51b322090a16159d63156e7d9642820511dbb6688ec1a6877449f3
Contents?: true
Size: 473 Bytes
Versions: 13
Compression:
Stored size: 473 Bytes
Contents
require 'cases/helper' require 'models/post' require 'models/author' module ActiveRecord module Associations class AssociationScopeTest < ActiveRecord::TestCase test 'does not duplicate conditions' do scope = AssociationScope.scope(Author.new.association(:welcome_posts), Author.connection) binds = scope.where_clause.binds.map(&:value) assert_equal binds.uniq, binds end end end end
Version data entries
13 entries across 13 versions & 1 rubygems