serialize_yaml2json 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/serialize_yaml2json.rb +1 -1
- data/lib/serialize_yaml2json/version.rb +1 -1
- data/spec/serialize_yaml2json_spec.rb +12 -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: c5190c3126d7c9c0aacec40659c465002996c455
|
4
|
+
data.tar.gz: f14323be9995a8dfef8af33bab6e3f7ea039e525
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9fbe6848e2314d2ee6ce03e9d09366768d2d56f606e2e4825a01c61188984306be90abc7aadb9dc5fd8453fbc688533086a190142de54d56fab21cf2e1339329
|
7
|
+
data.tar.gz: ed61216750c7023370c02308671cce8feb2d0d0f3d575ac541b0a01109b2fc2cf5e828d3fa8f5a92fd770a6597ff78a37ddaf3f19c48e6aa26b657282aa7239a
|
data/lib/serialize_yaml2json.rb
CHANGED
@@ -39,4 +39,16 @@ describe SerializeYAML2JSON do
|
|
39
39
|
|
40
40
|
end
|
41
41
|
|
42
|
+
describe "with a nil value" do
|
43
|
+
before do
|
44
|
+
subject.class.connection.update("UPDATE widgets SET data = NULL")
|
45
|
+
subject.reload
|
46
|
+
end
|
47
|
+
|
48
|
+
it "loads correctly" do
|
49
|
+
expect(subject.data).to eq nil
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
53
|
+
|
42
54
|
end
|