test_tube 2.1.1 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/test_tube/invoker.rb +7 -9
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1cac8bf6e09699d7c35d379b70b15cec448fce162d0664eef890405483c7a305
4
- data.tar.gz: 34d205b4ba02fcc13fecd4478d2e47ca1409e74863abd99749de44332e8c69f3
3
+ metadata.gz: cba8c30ae585d6ac402dffd73a643e1f56b5e3341ae02c7299f1b9a4bb34b38f
4
+ data.tar.gz: 1b4d9ca54c4eb275982bbee603c16a82639a988920a61f8e9b2029a8b4ee6471
5
5
  SHA512:
6
- metadata.gz: 29bbf3f347a546b393f5c180c94d74d41642501610abac8b4dda30ddfeca51606b7cece16a7121d3dd30331789b169039bfee52693056c09122d2fd51021821c
7
- data.tar.gz: f13e1130f39b17577b066e7fea60e0bd4935a37eba7c27079bc5835e1dc8afbf87ef4b985f1baa4007d1b8a069ecd8e78607fef5a2a1abdbc134c633bbfaba4c
6
+ metadata.gz: 4332f949beca9c924e535917bca0df8538c385daeebb60bbced8f4b3868f05112f86c140147f01b34d4c6d3d68a5c0deea4879769d7af796d2d1a87af6a6bcf5
7
+ data.tar.gz: 15dbac8b721a1d11849138783f009462bbdee16b899713db691432d33285bf997da4068efaf61fee874e12adb47dcc66d984d036a8205124b111139f71f05945
@@ -20,16 +20,14 @@ module TestTube
20
20
  def initialize(isolate:, matcher:, negate:, &input)
21
21
  super()
22
22
 
23
- @got = negate ^ matcher.matches? do
24
- value = if isolate
25
- send_call.to!(input)
26
- else
27
- send_call.to(input)
28
- end
23
+ value = if isolate
24
+ send_call.to!(input)
25
+ else
26
+ send_call.to(input)
27
+ end
29
28
 
30
- @actual = value.object
31
- value.call
32
- end
29
+ @actual = value.object
30
+ @got = negate ^ matcher.matches? { value.call }
33
31
  rescue ::Exception => e
34
32
  @actual = nil
35
33
  @error = e
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test_tube
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyril Kato
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-31 00:00:00.000000000 Z
11
+ date: 2021-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: defi