loquor 1.1.0 → 1.1.1
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/loquor/object_hash.rb +1 -1
- data/lib/loquor/version.rb +1 -1
- data/test/object_hash_test.rb +5 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67976c1b27cc7116c58be7007348984a3d653439
|
4
|
+
data.tar.gz: 8bfe7d6a68bfba4fd830f791e626002c0e2d796b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26a431293bfd25cc5b312290c4dc57aa48c71459a7c5c9cdcd4f0cf57a54e7b12bf97aa743b0e79f5dc0746bc8c5aeb294266d8e9c2b63fb378ec72c41126328
|
7
|
+
data.tar.gz: 2ca3d98c59e01d8e7ab734bb0cbe324adcaf2c6f50010bc877ce4c88f7c1d6a6372656c724a5f336a258a0fd077a20b66bc578ee4d03c6c0c2d7b9b0fb62a302
|
data/CHANGELOG.md
CHANGED
data/lib/loquor/object_hash.rb
CHANGED
data/lib/loquor/version.rb
CHANGED
data/test/object_hash_test.rb
CHANGED
@@ -37,6 +37,11 @@ module Loquor
|
|
37
37
|
assert_equal true, representation.respond_to?(:foo)
|
38
38
|
end
|
39
39
|
|
40
|
+
def test_respond_to_knows_about_hash_keys
|
41
|
+
representation = ObjectHash.new({foo: "bar"})
|
42
|
+
assert_equal true, representation.respond_to?('foo')
|
43
|
+
end
|
44
|
+
|
40
45
|
def test_hash_keys_are_accessible_via_methods
|
41
46
|
representation = ObjectHash.new({foo: "bar"})
|
42
47
|
assert_equal "bar", representation.foo
|