servactory 2.9.0.rc3 → 2.9.0.rc5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/servactory/test_kit/rspec/matchers.rb +5 -5
- data/lib/servactory/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc0f7f02e7f7a32fa1c9b84a4b2b45d87cdfc3ed7f0cb27fe2b15d93c570ae43
|
4
|
+
data.tar.gz: 2048fe4a17318921ea6704f4c6bc6e78f7c6ee85d423178db0a6fe5da4c3cc8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c79767f67921b3eccc6c0ee3fd8b7853173950b3977b8c61470494a37a8613760d3e461fd6242037801117823f4f2cba21c64f3038cdcbc4fe39fd85ab4e327a
|
7
|
+
data.tar.gz: e35b9d4f772d911e53dff8945e846a86b06c3ddf09b4ed7ebb791d0a4d27c5e13bfd6965aaf5c1098079a7f1d31638be5b8df555275ed762ae64f10f8facf1e3
|
@@ -115,7 +115,7 @@ module Servactory
|
|
115
115
|
end
|
116
116
|
|
117
117
|
failure_message do |actual| # rubocop:disable Metrics/BlockLength
|
118
|
-
unless actual.
|
118
|
+
unless actual.is_a?(Servactory::Result)
|
119
119
|
break <<~MESSAGE
|
120
120
|
Incorrect service result:
|
121
121
|
|
@@ -184,7 +184,7 @@ module Servactory
|
|
184
184
|
matched &&= !actual.success?
|
185
185
|
matched &&= actual.failure?
|
186
186
|
matched &&= actual.error.is_a?(Servactory::Exceptions::Failure)
|
187
|
-
matched &&= actual.error.
|
187
|
+
matched &&= actual.error.is_a?(expected_failure_class)
|
188
188
|
matched &&= actual.error.type == expected_type
|
189
189
|
matched &&= actual.error.message == expected_message
|
190
190
|
matched &&= actual.error.meta == expected_meta
|
@@ -208,7 +208,7 @@ module Servactory
|
|
208
208
|
end
|
209
209
|
|
210
210
|
failure_message do |actual| # rubocop:disable Metrics/BlockLength
|
211
|
-
unless actual.
|
211
|
+
unless actual.is_a?(Servactory::Result)
|
212
212
|
break <<~MESSAGE
|
213
213
|
Incorrect service result:
|
214
214
|
|
@@ -236,7 +236,7 @@ module Servactory
|
|
236
236
|
end
|
237
237
|
|
238
238
|
if defined?(@expected_failure_class)
|
239
|
-
unless actual.error.
|
239
|
+
unless actual.error.is_a?(@expected_failure_class)
|
240
240
|
break <<~MESSAGE
|
241
241
|
Incorrect instance error:
|
242
242
|
|
@@ -245,7 +245,7 @@ module Servactory
|
|
245
245
|
MESSAGE
|
246
246
|
end
|
247
247
|
else
|
248
|
-
unless actual.error.
|
248
|
+
unless actual.error.is_a?(Servactory::Exceptions::Failure)
|
249
249
|
break <<~MESSAGE
|
250
250
|
Incorrect error object:
|
251
251
|
|
data/lib/servactory/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: servactory
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.9.0.
|
4
|
+
version: 2.9.0.rc5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anton Sokolov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '5.1'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '8.
|
22
|
+
version: '8.1'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '5.1'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '8.
|
32
|
+
version: '8.1'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: i18n
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -377,7 +377,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
377
377
|
- !ruby/object:Gem::Version
|
378
378
|
version: '0'
|
379
379
|
requirements: []
|
380
|
-
rubygems_version: 3.5.
|
380
|
+
rubygems_version: 3.5.16
|
381
381
|
signing_key:
|
382
382
|
specification_version: 4
|
383
383
|
summary: A set of tools for building reliable services of any complexity
|