pigeon_hole 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pigeon_hole.rb +0 -1
- data/lib/pigeon_hole/typed_json.rb +0 -2
- data/spec/integration_spec.rb +0 -19
- 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: 7d0a69693e1ef17c571cae616b9f398a7abe2d57
|
4
|
+
data.tar.gz: 04c290bc512015a4322189249d7e725f2092ab39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdcbfca77cc2becdb833776e0b54da4c9c291571c08abadd65783f99a2da3cc0842f454d858b0c068be7f7f0e92868269e82d90d60a94be51925fdd8cd7e0f4d
|
7
|
+
data.tar.gz: 208b79c5a0b4b6b7b8cff757e3ebbb68d0a51655dea6f18a0621bd0f65adbb70a1eed216b103c467f23403f12a8423c8d590f3d9f1e71987ef46a6292ddc9d1b
|
data/lib/pigeon_hole.rb
CHANGED
data/spec/integration_spec.rb
CHANGED
@@ -36,25 +36,6 @@ describe "serializing times" do
|
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
39
|
-
describe "serializing datetimes" do
|
40
|
-
let(:date_time) { random_date_time }
|
41
|
-
|
42
|
-
subject { PigeonHole.generate(date_time: date_time) }
|
43
|
-
|
44
|
-
it "serializes hash into a string" do
|
45
|
-
result = subject
|
46
|
-
expect(result).to_not be_empty
|
47
|
-
end
|
48
|
-
|
49
|
-
it "can be deserialized to a date_time" do
|
50
|
-
result = subject
|
51
|
-
hash = PigeonHole.parse(result)
|
52
|
-
expect(hash["date_time"]).to be_a(DateTime)
|
53
|
-
expect(hash["date_time"].to_date).to eq(date_time.to_date)
|
54
|
-
expect(hash["date_time"].to_time.to_i).to eq(date_time.to_time.to_i)
|
55
|
-
end
|
56
|
-
end
|
57
|
-
|
58
39
|
describe "serializing symbols" do
|
59
40
|
let(:symbol) { :a_symbol }
|
60
41
|
|