Sha256: dcb5d4867cd6636489d0c4d260b830e1af20c0817b9f9cebd629c2acd84a3e5c
Contents?: true
Size: 489 Bytes
Versions: 10
Compression:
Stored size: 489 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
10 entries across 10 versions & 1 rubygems