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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aa8c2bbbbc61a067c2e6038c50e7f8df831c8f669c3fd57b5954e43e5037630b
4
- data.tar.gz: 5d1627e0c1ca92d60fa45938ad20ebd4b4da5a8275956f49d47812ca763a185e
3
+ metadata.gz: a27fa94bd179bccf62c15919bcc7cccb3852d1ef3453494c4ff84d2a6757c9aa
4
+ data.tar.gz: e4dd133123bb2484f0efff4e06d53dfa217071dff1a697921623228785a09404
5
5
  SHA512:
6
- metadata.gz: 8b930d93d630ef30b1ac1bbba739b0b89f6a2d7475c1d70aa50c58a0ded5bc2ed2d1f13e53640ab58ff05f6ed64ed46fa00f1ac557aa2b6c749a6505a95f4edb
7
- data.tar.gz: 60c97c1f7b042b22583b4403c7f1fc063f9c1f6025b34f8d80cc773ade82baeb37f9fddd0b9f9ca07b5b038de35ed6d7150b47097cea326fa23ee3a00f5411ce
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
@@ -17,7 +17,7 @@
17
17
  module Test
18
18
  module Unit
19
19
  module Rails
20
- VERSION = "6.1.0"
20
+ VERSION = "7.0.0"
21
21
  end
22
22
  end
23
23
  end
@@ -0,0 +1,11 @@
1
+ require "test_helper"
2
+
3
+ class TestActionView < ActionView::TestCase
4
+ sub_test_case "sub 1" do
5
+ sub_test_case "sub 2" do
6
+ def test_test_under_double_nexted_sub_test_case_works
7
+ assert_true true
8
+ end
9
+ end
10
+ end
11
+ end
@@ -1,6 +1,7 @@
1
1
  require "test_helper"
2
2
 
3
- if ActionDispatch::SystemTesting.const_defined?(:Server)
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: 6.1.0
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-01-13 00:00:00.000000000 Z
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.1.2
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.1.2
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