rematch 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/minitest/rematch_plugin.rb +5 -2
- data/lib/rematch.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8000531b99edc355b0d29b844278d0cdd07c4fc4381533bc46da67ffe0cc1d68
|
4
|
+
data.tar.gz: 217d652a6fd6f2906320c55dfd3c965e46567d96b57fc52072795af76507d876
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc259ae4bdc84553b60cefe0590721c7762595d8890e0dda85884e96393e97f8f85ef89f10046a10b11ea1d62c2303078fe391cc50204fcb5605155c53407afb
|
7
|
+
data.tar.gz: 60f9c9c325bb6b4937f2513329002891e1f244b475e8d7172c044da64a148e88c90b40e3410b9c288328277d4ac5ced09d25ac37f389b45bc0fcaaa2d9804636
|
@@ -20,8 +20,11 @@ module Minitest
|
|
20
20
|
|
21
21
|
# reopen the minitest module
|
22
22
|
module Assertions
|
23
|
-
def assert_rematch(actual,
|
24
|
-
|
23
|
+
def assert_rematch(actual, *args)
|
24
|
+
assertion = :assert_equal
|
25
|
+
message = nil
|
26
|
+
args.each { |arg| arg.is_a?(Symbol) ? assertion = arg : message = arg }
|
27
|
+
send assertion, @rematch.rematch(actual), actual, message
|
25
28
|
end
|
26
29
|
end
|
27
30
|
|
data/lib/rematch.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rematch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Domizio Demichelis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-05-
|
11
|
+
date: 2021-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Instead of copying and pasting large outputs or big ruby structures into
|
14
14
|
all the affected test files every time your code change, you can do it the easy
|