jsonapi_spec_helpers 0.4.0 → 0.4.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: 9c36878621e6f202f4b5791d431b56afcbf2d7ae
4
- data.tar.gz: 9b88eb9065c3432556ec28c66bc700efc9554eb7
3
+ metadata.gz: 927dbe8b9d8870dfbc86e00fe000c6281283d087
4
+ data.tar.gz: 4db68a6eb7cacb495a678d78e78e4f80ef71dbee
5
5
  SHA512:
6
- metadata.gz: d33e7becfd54ae759ffc1652d70398214ac44c9387c2a3c090bef58ff60a898fdf89464c2aea04217bcb230ed02d2092d8c5e456bc9bf26151e92fb8291d031f
7
- data.tar.gz: 14c9d8f575203fb2ef060b280eebea241e4e696a14801efcf275978e2365fe0404e9a24ff85dc68c0c8438d7141266619cc02ac59f0b55dcac3de6b753a37049
6
+ metadata.gz: ae8b51622085fe64fa043a06940f19bf20c6e655105a699ed88b9b7bba31e4045c2aa3f5d2a5d417cf408b929a71853a826d650d4be10eb9f5f1a577a01f12a1
7
+ data.tar.gz: 9a6ebb895ea93e36ba121010fc5f1d91798f8964cdffcf26edd6cb15e21651a2da020648b548e6e57cbc5693d2110411499f8b0ddbf177fd8677c43b9422f9fc
@@ -14,7 +14,11 @@ end
14
14
 
15
15
  RSpec::Matchers.define :match_type do |attribute, type|
16
16
  match do |actual|
17
- actual.is_a?(type)
17
+ if type.is_a?(Array)
18
+ type.any? { |t| actual.is_a?(t) }
19
+ else
20
+ actual.is_a?(type)
21
+ end
18
22
  end
19
23
 
20
24
  failure_message do |actual|
@@ -1,3 +1,3 @@
1
1
  module JsonapiSpecHelpers
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.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.4.0
4
+ version: 0.4.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-05-11 00:00:00.000000000 Z
11
+ date: 2017-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry