rr 3.0.7 → 3.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +11 -0
- data/Gemfile +7 -0
- data/lib/rr/integrations/minitest_4.rb +4 -4
- data/lib/rr/version.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: 7450b7a3e656ff288e54d65cd2c9b899229706d72637a6e7b6944451b311bbe2
|
4
|
+
data.tar.gz: 44d9fa9e2e2f39809320e5d93819df20261dc6ad4ee83ec7e3fba9c81a03aa7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce0dc401f91fd48daeace9aabcc745e9d8f99a27362a82c890cfef326b21f465c826fcad5990f5f4b9f7a1757d5634431b2bdf71c9c6d02d319fc4ca3f9c2c99
|
7
|
+
data.tar.gz: acc8046b8610d2b35571414f736d58ba2e9dcfecf0b59da715c50f972bafbe839c4b627cee6e5d42fa023dd6ab7b2d7b645384f33a4f45c70af79f4e5fc64150
|
data/CHANGES.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 3.0.8 - 2021-10-17
|
4
|
+
|
5
|
+
### Fixes
|
6
|
+
|
7
|
+
* Minitest integration: Fixed a bug that `NameError` is raised.
|
8
|
+
[GitHub#88][Reported by Matijs van Zuijlen]
|
9
|
+
|
10
|
+
### Thanks
|
11
|
+
|
12
|
+
* Matijs van Zuijlen
|
13
|
+
|
3
14
|
## 3.0.7 - 2021-08-17
|
4
15
|
|
5
16
|
### Fixes
|
data/Gemfile
CHANGED
@@ -41,11 +41,11 @@ module RR
|
|
41
41
|
|
42
42
|
if defined?(::ActiveSupport::TestCase)
|
43
43
|
is_active_support_test_case = lambda do |target|
|
44
|
-
|
44
|
+
target.is_a?(::ActiveSupport::TestCase)
|
45
45
|
end
|
46
46
|
else
|
47
47
|
is_active_support_test_case = lambda do |target|
|
48
|
-
|
48
|
+
false
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
@@ -53,7 +53,7 @@ module RR
|
|
53
53
|
alias_method :setup_without_rr, :setup
|
54
54
|
define_method(:setup_with_rr) do
|
55
55
|
setup_without_rr
|
56
|
-
return is_active_support_test_case.call(self)
|
56
|
+
return if is_active_support_test_case.call(self)
|
57
57
|
RR.reset
|
58
58
|
RR.trim_backtrace = true
|
59
59
|
RR.overridden_error_class = assertion_error_class
|
@@ -63,7 +63,7 @@ module RR
|
|
63
63
|
alias_method :teardown_without_rr, :teardown
|
64
64
|
define_method(:teardown_with_rr) do
|
65
65
|
begin
|
66
|
-
RR.verify
|
66
|
+
RR.verify unless is_active_support_test_case.call(self)
|
67
67
|
ensure
|
68
68
|
teardown_without_rr
|
69
69
|
end
|
data/lib/rr/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kouhei Sutou
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2021-
|
13
|
+
date: 2021-10-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|