json_api_test_helpers 1.2.1.1 → 1.2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/json_api_test_helpers/response.rb +2 -2
- data/lib/json_api_test_helpers/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e5ee478148b8932146819a1fb023f43b747bc3054df0b195f8d0371a377a6e83
|
|
4
|
+
data.tar.gz: 84e9ce07016a996f29a83047ff12077f9abca94f8c738fc36babc593004652f4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '038a4cf093a1d4b1db5fac6340cf4567aa3a7289e8b570e3420336e290ed730d12c9500ec96e0837fe597856edacda4e2e08c64aae38cb1a5a3def156d0d12f4'
|
|
7
|
+
data.tar.gz: f77a4f8fcb01ef5c0551f6d18b6106fffacf23be9b809f042a21c96d897030a136e27745330f9bc9e62d7a28b02cce430c02d000b6b4aa33d92a02969e31c109
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
module JsonApiTestHelpers
|
|
2
2
|
module Response
|
|
3
3
|
def json_response
|
|
4
|
-
if response
|
|
5
|
-
parsed_json = JSON.parse response
|
|
4
|
+
if response.body.present?
|
|
5
|
+
parsed_json = JSON.parse response.body
|
|
6
6
|
parsed_json.with_indifferent_access unless parsed_json.is_a? Array
|
|
7
7
|
else
|
|
8
8
|
raise 'Response body is empty'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: json_api_test_helpers
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.1.
|
|
4
|
+
version: 1.2.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Pavel Kalashnikov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-01-
|
|
11
|
+
date: 2022-01-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|