jsonapi_spec_helpers 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2a6f8ea375381fb21a7d8db9415ade8e1d7a8da6
4
- data.tar.gz: 202e35d79f5d3798410d0b25fa35830ff6c58dd1
3
+ metadata.gz: d7a8f9d6697b4471dd16e231de744711a38c3854
4
+ data.tar.gz: d0c6bc82582940aabeaa9300a4073ef53110f985
5
5
  SHA512:
6
- metadata.gz: 8ad84e0cc89b526ccfa0bb1f9375e7c96ae371cf103a66ed4198a832f0cd1465d3a79e437c214f1a847a134681d830cb9e91fdef7e24d2f5457028e352ef14ae
7
- data.tar.gz: 556a4ec9df1bfaa1b36b4286704965a9e62b76d078fa95cfaa65ddb90d6727863b72d6c95a5bc180858cfc8a88306a85056661789f018b920e47fd9daa627863
6
+ metadata.gz: 35950ee5cfa89479fec574c9a9d72ef39fda12b14b6a0888c7392f58b1ff77dfa437693c708abc98b5002b3c68cc016b31a40ac964b41323f4aab5fa3470ab9f
7
+ data.tar.gz: dc7d59cb35245d99310447c96f3657132b6a643b15fd82d4441ffe15fe2bac3fe565936c89b35a5d03dee64d6c58f7bca610cc0e27ee618177ba2c8a98d59d40
@@ -1,5 +1,9 @@
1
1
  RSpec::Matchers.define :match_payload do |attribute, expected|
2
2
  match do |actual|
3
+ if actual.respond_to?(:as_json)
4
+ actual = actual.as_json
5
+ end
6
+
3
7
  actual == expected
4
8
  end
5
9
 
@@ -1,3 +1,3 @@
1
1
  module JsonapiSpecHelpers
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsonapi_spec_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Richmond
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-02-11 00:00:00.000000000 Z
11
+ date: 2017-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -137,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
137
  version: '0'
138
138
  requirements: []
139
139
  rubyforge_project:
140
- rubygems_version: 2.5.1
140
+ rubygems_version: 2.6.7
141
141
  signing_key:
142
142
  specification_version: 4
143
143
  summary: Spec helpers for jsonapi