dase 3.2.6 → 3.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/dase/version.rb +1 -1
- data/test/test_dase.rb +4 -0
- metadata +2 -2
data/lib/dase/version.rb
CHANGED
data/test/test_dase.rb
CHANGED
@@ -64,6 +64,10 @@ class TestBase < Test::Unit::TestCase
|
|
64
64
|
assert_equal true_counts, dase_counts, "results mismatch"
|
65
65
|
end
|
66
66
|
|
67
|
+
should "allow merge (nil) on a scope with includes_count_of" do
|
68
|
+
assert_equal 3, Author.includes_count_of(:books).merge(nil).all.size
|
69
|
+
end
|
70
|
+
|
67
71
|
#should "count using block conditions (arity: 0)" do
|
68
72
|
# dase_counts = Author.includes_count_of(:books){where(:year => 2012)}.order(:name).map { |a| a.books_count }
|
69
73
|
# # the order is: Bobby, Joe, Teddy - due to order(:name)
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: dase
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 3.2.
|
5
|
+
version: 3.2.7
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Vladimir Yartsev
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-03-01 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|