active_node 2.2.8 → 2.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_node/graph.rb +0 -4
- data/lib/active_node/version.rb +1 -1
- data/spec/functional/graph/query_methods_spec.rb +9 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec9336e089548ff6330d481bd0eba85e7271f9ee
|
4
|
+
data.tar.gz: 52ddbd8b07e19a0abc8597342543697b7ad1127e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0097d3c8dd69f3b8cd29253b3a10fc8ef87e0609dca385fde28384d228b37b16ebaffac607526e545019355e64d500f7316a0b9995628db7a997f1670f15c9c3
|
7
|
+
data.tar.gz: a38eecc74b13f6842262d0af6a273eec053ac656ad9e8edfa5d04bf588e212185a963bbd487758c0623692ace430a47b39ea75d9cab44b2d11424726b057e363
|
data/lib/active_node/graph.rb
CHANGED
data/lib/active_node/version.rb
CHANGED
@@ -16,4 +16,13 @@ describe ActiveNode::QueryMethods do
|
|
16
16
|
expect(Person.limit(1)).to eq([p1])
|
17
17
|
end
|
18
18
|
end
|
19
|
+
|
20
|
+
describe "#count" do
|
21
|
+
it "should respect block passed to count" do
|
22
|
+
Person.create!(name: 'abc')
|
23
|
+
expect(Person.count).to eq(1)
|
24
|
+
expect(Person.count{|p| p.name == 'abc'}).to eq(1)
|
25
|
+
expect(Person.count{|p| p.name != 'abc'}).to eq(0)
|
26
|
+
end
|
27
|
+
end
|
19
28
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_node
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Heinrich Klobuczek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_attr
|