test/test_dase.rb in dase-4.2.1 vs test/test_dase.rb in dase-5.0.0
- old
+ new
@@ -76,13 +76,13 @@
# the order is: Bobby, Joe, Teddy - due to order(:name)
true_counts = [0, 1, 0] # see books.yml
assert_equal true_counts, dase_counts, "results mismatch"
end
- it 'should allow merge (nil) on a scope with includes_count_of' do
- assert_equal 3, Author.includes_count_of(:books).merge(nil).all.size
- end
+ # it 'should allow merge (nil) on a scope with includes_count_of' do
+ # assert_equal 3, Author.includes_count_of(:books).merge(nil).all.size
+ # end
# pending "apply: lambda {where...}"
it 'should count likes' do
dase_counts = Author.order(:name).includes_count_of(:scores).map { |a| a.scores_count }
@@ -111,6 +111,5 @@
Author.includes_count_of(:books).find_each(batch_size: 2) { |r| records << r }
dase_count = records.sort_by(&:name).map { |a| a.books_count }
assert_equal [1, 3, 0], dase_count, "dase countings failed" # see books.yml
end
end
-