test-unit-rails 6.1.0 → 7.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/text/news.md +15 -0
- data/lib/test/unit/rails/test_help.rb +19 -0
- data/lib/test/unit/rails/version.rb +1 -1
- data/test/test_action_view.rb +11 -0
- data/test/test_system_test_case.rb +2 -1
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a27fa94bd179bccf62c15919bcc7cccb3852d1ef3453494c4ff84d2a6757c9aa
|
4
|
+
data.tar.gz: e4dd133123bb2484f0efff4e06d53dfa217071dff1a697921623228785a09404
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48dc673edefb28ebb9faa0a22fad368fe59ddc292d35a953a92b58e6475b472eae40f4914c9f431246cc9e8c702e9f411fb890d61cd92cc97ce1a5e79d64be5f
|
7
|
+
data.tar.gz: 6d3fd26cd33aa2465526c7ab197548e05eb5623276465458345bb3aed6233f143183b0638ccd39770b453fce1f6dbfeea47e42a9ee9aacd2435e350d90d389a1
|
data/doc/text/news.md
CHANGED
@@ -1,5 +1,20 @@
|
|
1
1
|
# News
|
2
2
|
|
3
|
+
## 7.0.0 - 2021-12-20 {#version-7-0-0}
|
4
|
+
|
5
|
+
### Improvements
|
6
|
+
|
7
|
+
* Dropped support for Rails 5.1.
|
8
|
+
|
9
|
+
* Added support for Rails 7.0.
|
10
|
+
|
11
|
+
* Added support for deep `sub_test_case`.
|
12
|
+
[GitHub#24][Reported by Akira Matsuda]
|
13
|
+
|
14
|
+
### Thanks
|
15
|
+
|
16
|
+
* Akira Matsuda
|
17
|
+
|
3
18
|
## 6.1.0 - 2021-01-13 {#version-6-1-0}
|
4
19
|
|
5
20
|
### Improvements
|
@@ -84,6 +84,25 @@ class ActionController::TestCase
|
|
84
84
|
end
|
85
85
|
end
|
86
86
|
|
87
|
+
module TestUnitRails
|
88
|
+
module ActionViewSubTestCase
|
89
|
+
private
|
90
|
+
|
91
|
+
# Monkey-patching sub_test_case not to raise when fetching its default helper module
|
92
|
+
def sub_test_case_class(*)
|
93
|
+
klass = super
|
94
|
+
class << klass
|
95
|
+
define_method :anonymous? do
|
96
|
+
true
|
97
|
+
end
|
98
|
+
end
|
99
|
+
klass
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
ActionView::TestCase.singleton_class.prepend TestUnitRails::ActionViewSubTestCase
|
105
|
+
|
87
106
|
class ActionDispatch::IntegrationTest
|
88
107
|
setup do
|
89
108
|
@routes = Rails.application.routes
|
@@ -1,6 +1,7 @@
|
|
1
1
|
require "test_helper"
|
2
2
|
|
3
|
-
|
3
|
+
# TODO: Enable this again
|
4
|
+
if !ENV["CI"] and ActionDispatch::SystemTesting.const_defined?(:Server)
|
4
5
|
class TestSystemTestCase < ActionDispatch::SystemTestCase
|
5
6
|
have_browser = ActionDispatch::SystemTesting.const_defined?(:Browser)
|
6
7
|
if have_browser
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: test-unit-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 7.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kouhei Sutou
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 5.
|
19
|
+
version: 5.2.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 5.
|
26
|
+
version: 5.2.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: test-unit-activesupport
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -187,6 +187,7 @@ files:
|
|
187
187
|
- test/run-test.rb
|
188
188
|
- test/test_action_controller.rb
|
189
189
|
- test/test_action_dispatch.rb
|
190
|
+
- test/test_action_view.rb
|
190
191
|
- test/test_helper.rb
|
191
192
|
- test/test_system_test_case.rb
|
192
193
|
homepage: https://github.com/test-unit/test-unit-rails
|
@@ -218,5 +219,6 @@ test_files:
|
|
218
219
|
- test/run-test.rb
|
219
220
|
- test/test_action_controller.rb
|
220
221
|
- test/test_action_dispatch.rb
|
222
|
+
- test/test_action_view.rb
|
221
223
|
- test/test_helper.rb
|
222
224
|
- test/test_system_test_case.rb
|