test-unit 3.5.2 → 3.5.3

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: f68e06076f196af5137a8514872309304b5eac72a72035649deb58babc029ed0
4
- data.tar.gz: 595d74f6c5ebbce27e817860993e490d71f8539dd1a2debe6d5ae1bc58e88df7
3
+ metadata.gz: 3a763b935a0a7386519019ce4dc198a3ba9f0dd00f9f44a10cb887d48f2b9d2e
4
+ data.tar.gz: a7b94931289833bc8406c5b07421425110a37ff9a099c43257a83e9b3759a7f0
5
5
  SHA512:
6
- metadata.gz: c0b9c2dfc8d9c21dc7ff5866cc40f574dba66ca4fa11879cb6550579baca19435853191f1190e953323c3dd91f7fcd0e9769c2721082558393daf3b56b5a936e
7
- data.tar.gz: bb2a03ac492469966e7202cf36c1e1b93bf5b89a09b2206a983dc55d1f1fa632b153f60a88ccc20ad7046be81138b2a798cbc72d13fa0b2e98024c07bb7ed13d
6
+ metadata.gz: c4cda5342ca0dee7d082e7a61c41a16e532a270848c5944cad33b04fac1cc4b4eaafc3952fba1e8035f2a2f23dd0ef71adf01262210c8f4df860ef155e92cefd
7
+ data.tar.gz: a28acd0a86eaab701fc1bcc4682e17d1ddd2298fa34e2e292fffe488995f257b728fb0aaedb9d9e0511316dd411b9d44a09d59084c91997e190fef55a2b3ce14
data/doc/text/news.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # News
2
2
 
3
+ ## 3.5.3 - 2021-12-20 {#version-3-5-3}
4
+
5
+ ### Improvements
6
+
7
+ * Made how to sub test case generation customizable.
8
+ [GitHub#207][Patch by Akira Matsuda]
9
+
10
+ ### Thanks
11
+
12
+ * Akira Matsuda
13
+
3
14
  ## 3.5.2 - 2021-12-10 {#version-3-5-2}
4
15
 
5
16
  ### Improvements
@@ -419,13 +419,7 @@ module Test
419
419
  # case class context.
420
420
  # @return [Test::Unit::TestCase] Created sub test case class.
421
421
  def sub_test_case(name, &block)
422
- parent_test_case = self
423
- sub_test_case = Class.new(self) do
424
- singleton_class = class << self; self; end
425
- singleton_class.__send__(:define_method, :name) do
426
- [parent_test_case.name, name].compact.join("::")
427
- end
428
- end
422
+ sub_test_case = sub_test_case_class(name)
429
423
  sub_test_case.class_eval(&block)
430
424
  sub_test_case
431
425
  end
@@ -514,6 +508,17 @@ module Test
514
508
  target_locations
515
509
  end
516
510
  end
511
+
512
+ # @private
513
+ def sub_test_case_class(name)
514
+ parent_test_case = self
515
+ Class.new(self) do
516
+ singleton_class = class << self; self; end
517
+ singleton_class.__send__(:define_method, :name) do
518
+ [parent_test_case.name, name].compact.join("::")
519
+ end
520
+ end
521
+ end
517
522
  end
518
523
 
519
524
  attr_reader :method_name
@@ -1,5 +1,5 @@
1
1
  module Test
2
2
  module Unit
3
- VERSION = "3.5.2"
3
+ VERSION = "3.5.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test-unit
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.2
4
+ version: 3.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-12-09 00:00:00.000000000 Z
12
+ date: 2021-12-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: power_assert