schemad 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/schemad/normalizer.rb +1 -1
- data/lib/schemad/version.rb +1 -1
- data/spec/normalizer_spec.rb +6 -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: 23e65c36347ae253cb19476c6e1e71d8780b7892
|
4
|
+
data.tar.gz: f82fe69db0ce5d3dac0ce47f3fb6a00c608af520
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6a0355d4d8c535bb22e84ba47d35103b547a5b2e29d14919c29d4a4db394ba9cd6f8a8aed5be844bf2ada7f0a84e7e5f7d4b5c5e89eb907fe1f1db760d78de9
|
7
|
+
data.tar.gz: ecaa21a31b82dc5a063b621ae4aa4588e2753906f14ebfa75e928690bd55722ec40e2ca6601231148c0011172ef42cfa5a670d74e476fa8c2299c927fdff6ee2
|
data/lib/schemad/normalizer.rb
CHANGED
data/lib/schemad/version.rb
CHANGED
data/spec/normalizer_spec.rb
CHANGED
@@ -47,6 +47,12 @@ describe Schemad::Normalizer do
|
|
47
47
|
When(:reversed) { normalizer.reverse(normalized.merge({ billy: "joel" })) }
|
48
48
|
Then { reversed.should == expected }
|
49
49
|
end
|
50
|
+
|
51
|
+
context "includes included_fields" do
|
52
|
+
Given { Demalizer.include_fields(:cool) }
|
53
|
+
When(:reversed) { normalizer.reverse(data) }
|
54
|
+
Then { reversed.should include({"cool" => "true"}) }
|
55
|
+
end
|
50
56
|
end
|
51
57
|
|
52
58
|
context "additional fields" do
|