lazy-pp-json 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/bin/lazy-pp-json +1 -1
- data/lib/lazy/pp/json/version.rb +1 -1
- data/test/test_array.rb +4 -0
- data/test/test_hash.rb +8 -0
- data/test/testutils.rb +2 -12
- 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: bed24ae16f915588c3a5feb5636c9b3e42181534
|
4
|
+
data.tar.gz: 510e16a5a6e611ac79b55c9c871d11e7838effa4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a375c877f5ab675c1cf002b48b6151dfbbc646fa636cf3ea46abfdb05b6a5a2aa7cd63933f586f96bc07c104b85d54dd763e5325605e0423e27c798168b1a9f
|
7
|
+
data.tar.gz: df45f79cd8b8a81a007002e14e02f5824c0bfbca0140bb052a860e2c2375f7757a4acd0dfd34b48481a8f3fc2b6f47170f292e2fec2c26d2344726fa332e6702
|
data/bin/lazy-pp-json
CHANGED
data/lib/lazy/pp/json/version.rb
CHANGED
data/test/test_array.rb
CHANGED
data/test/test_hash.rb
CHANGED
data/test/testutils.rb
CHANGED
@@ -19,22 +19,12 @@ module Lazy
|
|
19
19
|
["#{LONG_STRING[0..25]}", "#{LONG_STRING[26..51]}"]
|
20
20
|
ACTUAL
|
21
21
|
|
22
|
-
def setup
|
23
|
-
@original_stdout = $stdout.dup
|
24
|
-
@stdout = StringIO.new
|
25
|
-
$stdout = @stdout
|
26
|
-
end
|
27
|
-
|
28
|
-
def teardown
|
29
|
-
$stdout = @original_stdout
|
30
|
-
end
|
31
|
-
|
32
22
|
private
|
33
23
|
|
34
24
|
def assert_lazy_json(expected, actual_string)
|
35
25
|
actual = Lazy::PP::JSON.new(actual_string)
|
36
|
-
|
37
|
-
assert_equal(expected,
|
26
|
+
output = actual.pretty_inspect
|
27
|
+
assert_equal(expected, output, output)
|
38
28
|
end
|
39
29
|
end
|
40
30
|
end
|