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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f89a3b6ed25400e5159dce0a7387b14187f1e499168d0b3f6a9a83f00dd59625
4
- data.tar.gz: e3b0656e29ac91694ccd32fcd11cc22499de49259d3771cfcb679abd4be2838b
3
+ metadata.gz: e5ee478148b8932146819a1fb023f43b747bc3054df0b195f8d0371a377a6e83
4
+ data.tar.gz: 84e9ce07016a996f29a83047ff12077f9abca94f8c738fc36babc593004652f4
5
5
  SHA512:
6
- metadata.gz: 482ae47f476482ed8f08b86bfc8d9e202a9951a3836eec2b0777a39c21e93cad4b4f887025a96cdad3bfa328ca8114087310584dc300bf96cd361d90c21eef3b
7
- data.tar.gz: 40435013ab21964b0c3f23a3f76c9dbcb950191a8120272d631c0d579bfc1425a8f12004c7bf253bdd8170f12ef0a8274a0d334a030a0ae4d324abc48c90e6bf
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[:body].present?
5
- parsed_json = JSON.parse response[:body]
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'
@@ -1,3 +1,3 @@
1
1
  module JsonApiTestHelpers
2
- VERSION = '1.2.1.1'
2
+ VERSION = '1.2.1.2'
3
3
  end
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.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-09 00:00:00.000000000 Z
11
+ date: 2022-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler