ZenTest 4.10.0 → 4.10.1

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
  SHA1:
3
- metadata.gz: 8f8a3f08c3eeace59bc81d6b178c29372c716e25
4
- data.tar.gz: 8841b0872c66d27eb6e6eb77de3394dc9184a550
3
+ metadata.gz: 537ee4c2f6a3b2f67f48328baa4ccbd4427611bb
4
+ data.tar.gz: 6840ae3d10b6e56faecb3f5a97ac8f11964f5dbb
5
5
  SHA512:
6
- metadata.gz: 68b4adc55747a77f47c4adf26b373cda2f98252731926ec50d5f2913107b2cb8dc2281e1960e91f767322bbb0fbf82e2a507cddd87cca0ba9d56f3da09049781
7
- data.tar.gz: 01c12142f9ecc9ee9175fdaac1a9848eafd69e3dd9e4a5999ad3cdc25b834dc25c3c89c2a09801c94f1e737d59ba53aba2ec42c343a16e2e3edfa8d4b17ccc5c
6
+ metadata.gz: 93b6e44dfcac87819f73cb6890d8545030866bdb38e70cecd6456809c67d07a5ecd26498604e2d251e15ca8147ad6af3bd6c24ec6875d72e010cc3fc8a13c211
7
+ data.tar.gz: 587b83daa7d4359e3c1f0a7ffd609ee87d1a694b423f1d9357b27bd217c39b0c60ddc5aacad95a20d1f7fd2bb175914ca6f7f760a4b1c0db8097cf63068d6eb3
Binary file
data.tar.gz.sig CHANGED
Binary file
data/.autotest CHANGED
@@ -3,7 +3,6 @@
3
3
  require 'autotest/restart'
4
4
 
5
5
  Autotest.add_hook :initialize do |at|
6
- at.order = :random
7
6
  at.add_exception 'coverage'
8
7
  at.add_exception 'coverage.info'
9
8
 
@@ -1,3 +1,10 @@
1
+ === 4.10.1 / 2014-07-07
2
+
3
+ * 2 bug fixes:
4
+
5
+ * Change require to minitest/autorun for non-test/unit style
6
+ * Change the way files are gathered to avoid StackOverflow exception if you have a TOOON of files. (joshwand)
7
+
1
8
  === 4.10.0 / 2014-04-23
2
9
 
3
10
  * 2 minor enhancements:
@@ -622,7 +622,8 @@ class Autotest
622
622
 
623
623
  def known_files
624
624
  unless @known_files then
625
- @known_files = Hash[*find_order.map { |f| [f, true] }.flatten]
625
+ @known_files = {}
626
+ find_order.each {|f| @known_files[f] = true }
626
627
  end
627
628
  @known_files
628
629
  end
@@ -64,7 +64,7 @@ end
64
64
 
65
65
  class ZenTest
66
66
 
67
- VERSION = "4.10.0"
67
+ VERSION = "4.10.1"
68
68
 
69
69
  include ZenTestMapping
70
70
 
@@ -465,8 +465,12 @@ class ZenTest
465
465
 
466
466
  if @missing_methods.size > 0 then
467
467
  @result.push ""
468
- @result.push "require 'test/unit/testcase'"
469
- @result.push "require 'test/unit' if $0 == __FILE__"
468
+ if $t then
469
+ @result.push "require 'test/unit/testcase'"
470
+ @result.push "require 'test/unit' if $0 == __FILE__"
471
+ else
472
+ @result.push "require 'minitest/autorun'"
473
+ end
470
474
  @result.push ""
471
475
  end
472
476
 
@@ -174,8 +174,7 @@ class TestZenTest < Minitest::Test
174
174
  }
175
175
  @tester.inherited_methods = @tester.test_klasses.merge(@tester.klasses)
176
176
  @generated_code = "
177
- require 'test/unit/testcase'
178
- require 'test/unit' if $0 == __FILE__
177
+ require 'minitest/autorun'
179
178
 
180
179
  class Something
181
180
  def self.method4(*args)
@@ -505,7 +504,7 @@ end
505
504
  assert_equal expected, util_testcase("Blah0", "TestBlah0")
506
505
  end
507
506
 
508
- HEADER = "\nrequire 'test/unit/testcase'\nrequire 'test/unit' if $0 == __FILE__\n\n"
507
+ HEADER = "\nrequire 'minitest/autorun'\n\n"
509
508
 
510
509
  def test_testcase1
511
510
  expected = "#{HEADER}class Blah1\n def missingimpl(*args)\n raise NotImplementedError, 'Need to write missingimpl'\n end\nend\n\nclass TestBlah1 < Minitest::Test\n def test_missingtest\n raise NotImplementedError, 'Need to write test_missingtest'\n end\nend\n\n# Number of errors detected: 2"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ZenTest
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.10.0
4
+ version: 4.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
@@ -30,7 +30,7 @@ cert_chain:
30
30
  Y4evBVezr3SjXz08vPqRO5YRdO3zfeMT8gBjRqZjWJGMZ2lD4XNfrs7eky74CyZw
31
31
  xx3n58i0lQkBE1EpKE0lFu/y
32
32
  -----END CERTIFICATE-----
33
- date: 2014-04-23 00:00:00.000000000 Z
33
+ date: 2014-07-07 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: minitest
metadata.gz.sig CHANGED
@@ -1,2 +1,3 @@
1
- l3�\����E^/"3<S�&#m1�+c[IA���egh0�%+
2
- �������PO5�x���ܧ
1
+ ����lZ_ndzf:����!� ��T�j�gw(t7
2
+ ���i�έCs�ǰ��ǐ56v���ƒ�8~8?6�!��
3
+ �����4�*�9���G��Z]!'���h*Lcc =����$���S��I��q�d��^�� v�r�� ��\�u�V��P����U�h/��1D��������Vq��0�(^_������C}�>���'�9u�k��_