couchpillow 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/couchpillow/document.rb +1 -3
- data/lib/couchpillow/version.rb +1 -1
- data/test/test_document.rb +14 -2
- 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: b2614e99910f981ea4d7b668aabd7f51625cd68e
|
4
|
+
data.tar.gz: 5c3c4fc42eca72811689535f8abb12e3e595735e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3cf55601b3f2ed16a9db97fd4e10e049b950b68cb51789829c339f5fc6b7d814b4bf8c7f5c01bd8cfa58bef11c7ead8fc57e598d66b32ac5b3b63faac9255e9b
|
7
|
+
data.tar.gz: fb1816d27e21fe0540f15635ae97f86befe5b05eb2d1918837c2602b816162b704f710a269511f8720035b5df458e22e08ae2c6d48b520741f1b45debb96320b
|
data/lib/couchpillow/document.rb
CHANGED
data/lib/couchpillow/version.rb
CHANGED
data/test/test_document.rb
CHANGED
@@ -136,11 +136,11 @@ class TestDocument < Minitest::Test
|
|
136
136
|
CouchPillow.db.
|
137
137
|
expects(:get).
|
138
138
|
with('123').
|
139
|
-
returns( { '_type' => 'test', 'abc' =>
|
139
|
+
returns( { '_type' => 'test', 'abc' => 1 } )
|
140
140
|
|
141
141
|
d = klass.get('123')
|
142
142
|
assert d
|
143
|
-
assert_equal [1
|
143
|
+
assert_equal [1], d.abc
|
144
144
|
end
|
145
145
|
|
146
146
|
|
@@ -265,4 +265,16 @@ class TestDocument < Minitest::Test
|
|
265
265
|
assert_equal nil, d
|
266
266
|
end
|
267
267
|
|
268
|
+
|
269
|
+
def test_key_with_false_values
|
270
|
+
d = Document.new({ :key => false }, "1")
|
271
|
+
assert_equal false, d.key
|
272
|
+
end
|
273
|
+
|
274
|
+
|
275
|
+
def test_key_with_nil_values
|
276
|
+
d = Document.new({ :key => nil }, "1")
|
277
|
+
assert_equal nil, d.key
|
278
|
+
end
|
279
|
+
|
268
280
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: couchpillow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Albert Tedja
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|