jsonapi_expectations 0.2.0 → 0.3.0
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/jsonapi_expectations.rb +3 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b93fd0c8821c996df6d972369f4054f351ddc4e3
|
|
4
|
+
data.tar.gz: e64804a0fa006450b1898eb799598aadce8c473e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9f53768f7478cb392220d92064ba1d3f68efeddc1dbb61d2fa1cfb4436691f34d20f7d4245e7ca59d3430f5cdcf0efc9360c4fb8ddbd591434a22a720c652d67
|
|
7
|
+
data.tar.gz: 89d70bae4e61a61c5180f4285abc3d56d7c0e86e21068bbb9bca8077f2773394cc61c628b67c8ab3a974b5f6e7be93e920ebccb0163449aeeb00fcd67203b723
|
data/lib/jsonapi_expectations.rb
CHANGED
|
@@ -120,7 +120,7 @@ module JsonapiExpectations
|
|
|
120
120
|
elsif direction == :desc
|
|
121
121
|
expect(next_one).to be <= this_one
|
|
122
122
|
else
|
|
123
|
-
raise
|
|
123
|
+
raise 'Direction option needs to be :asc or :desc'
|
|
124
124
|
end
|
|
125
125
|
end
|
|
126
126
|
rescue RSpec::Expectations::ExpectationNotMetError
|
|
@@ -136,7 +136,8 @@ module JsonapiExpectations
|
|
|
136
136
|
json_body[:data]
|
|
137
137
|
end
|
|
138
138
|
expect_valid_data location
|
|
139
|
-
|
|
139
|
+
|
|
140
|
+
[location].flatten.detect do |item|
|
|
140
141
|
jsonapi_match? record, item, opts[:type]
|
|
141
142
|
end
|
|
142
143
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jsonapi_expectations
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ross-Hunter
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-04-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: airborne
|