entity_store 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/entity_store/attributes.rb +1 -1
- data/lib/entity_store/version.rb +1 -1
- data/spec/entity_store/entity_spec.rb +9 -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: 1d58d67428adc9e2cf8beb83e2c878d3d0b72d8f
|
4
|
+
data.tar.gz: 8fdcc2c436e37ac607e1bf050005e20faa6647ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48b58c0013d6f7eb1ea0e31ada051bca1ef4c47f7e5beb3631262ccc1bf365baecdd2c163cd42f95d7a9e521583c55b9fcaa564f00e5432abdb1e3d73a9d701a
|
7
|
+
data.tar.gz: bd63ad41b92b710e1cf9e753f340d0c54c217905105b993f071475b77a214cd0576825a6ba1a2e7bece6a2ad3fbf5275917ad4eed42e86b655e3149dbc131af5
|
data/lib/entity_store/version.rb
CHANGED
@@ -143,6 +143,15 @@ describe Entity do
|
|
143
143
|
entity.things.should eq(items)
|
144
144
|
end
|
145
145
|
end
|
146
|
+
context "when passed nil" do
|
147
|
+
before(:each) do
|
148
|
+
entity.things = nil
|
149
|
+
end
|
150
|
+
|
151
|
+
it "should result in an empty array" do
|
152
|
+
entity.things.should be_empty
|
153
|
+
end
|
154
|
+
end
|
146
155
|
end
|
147
156
|
|
148
157
|
describe "getter" do
|