minitest 3.0.1 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,10 @@
1
+ === 3.1.0 / 2012-06-13
2
+
3
+ * 2 minor enhancements:
4
+
5
+ * Removed LONG deprecated Unit.out accessor
6
+ * Removed generated method name munging from minitest/spec. (ordinaryzelig/tenderlove)
7
+
1
8
  === 3.0.1 / 2012-05-24
2
9
 
3
10
  * 1 bug fix:
@@ -174,12 +174,6 @@ class MiniTest::Spec < MiniTest::Unit::TestCase
174
174
  add_teardown_hook {|tc| tc.instance_eval(&block) }
175
175
  end
176
176
 
177
- NAME_RE = if RUBY_VERSION >= "1.9"
178
- Regexp.new("[^[[:word:]]]+")
179
- else
180
- /\W+/u
181
- end
182
-
183
177
  ##
184
178
  # Define an expectation with name +desc+. Name gets morphed to a
185
179
  # proper test method name. For some freakish reason, people who
@@ -197,7 +191,7 @@ class MiniTest::Spec < MiniTest::Unit::TestCase
197
191
  @specs ||= 0
198
192
  @specs += 1
199
193
 
200
- name = "test_%04d_%s" % [ @specs, desc.gsub(NAME_RE, '_').downcase ]
194
+ name = "test_%04d_%s" % [ @specs, desc ]
201
195
 
202
196
  define_method name, &block
203
197
 
@@ -645,7 +645,7 @@ module MiniTest
645
645
  end
646
646
 
647
647
  class Unit # :nodoc:
648
- VERSION = "3.0.1" # :nodoc:
648
+ VERSION = "3.1.0" # :nodoc:
649
649
 
650
650
  attr_accessor :report, :failures, :errors, :skips # :nodoc:
651
651
  attr_accessor :test_count, :assertion_count # :nodoc:
@@ -706,16 +706,6 @@ module MiniTest
706
706
  @@out
707
707
  end
708
708
 
709
- ##
710
- # Returns the stream to use for output.
711
- #
712
- # DEPRECATED: use ::output instead.
713
-
714
- def self.out
715
- warn "::out deprecated, use ::output instead." if $VERBOSE
716
- output
717
- end
718
-
719
709
  ##
720
710
  # Sets MiniTest::Unit to write output to +stream+. $stdout is the default
721
711
  # output
@@ -638,8 +638,8 @@ class TestMeta < MiniTest::Unit::TestCase
638
638
  assert_equal "inner thingy", y.desc
639
639
  assert_equal "very inner thingy", z.desc
640
640
 
641
- top_methods = %w(test_0001_top_level_it)
642
- inner_methods1 = %w(test_0001_inner_it)
641
+ top_methods = %w(test_0001_top-level-it)
642
+ inner_methods1 = %w(test_0001_inner-it)
643
643
  inner_methods2 = inner_methods1 +
644
644
  %w(test_0002_anonymous test_0003_anonymous)
645
645
 
@@ -683,13 +683,13 @@ class TestMeta < MiniTest::Unit::TestCase
683
683
  x = describe "top-level thingy" do
684
684
  y = describe "first thingy" do end
685
685
 
686
- x1 = it "top-level-it" do end
686
+ x1 = it "top level it" do end
687
687
  x2 = it "не латинские буквы-и-спецсимволы&いった α, β, γ, δ, ε hello!!! world" do end
688
688
 
689
689
  z = describe "second thingy" do end
690
690
  end
691
691
 
692
- test_methods = ['test_0001_top_level_it', 'test_0002_не_латинские_буквы_и_спецсимволы_いった_α_β_γ_δ_ε_hello_world'].sort
692
+ test_methods = ['test_0001_top level it', 'test_0002_не латинские буквы-и-спецсимволы&いった α, β, γ, δ, ε hello!!! world'].sort
693
693
 
694
694
  assert_equal test_methods, [x1, x2]
695
695
  assert_equal test_methods,
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 3
8
- - 0
9
8
  - 1
10
- version: 3.0.1
9
+ - 0
10
+ version: 3.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Davis
@@ -36,7 +36,7 @@ cert_chain:
36
36
  FBHgymkyj/AOSqKRIpXPhjC6
37
37
  -----END CERTIFICATE-----
38
38
 
39
- date: 2012-05-24 00:00:00 Z
39
+ date: 2012-06-13 00:00:00 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rdoc
metadata.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- =���s^��z"�XE8ḇe��M-o��:>0+>���l�e)&��Z��h�� fL}���tkND��F��
2
- ������a���i_����.1{����#r�}�:����~]�<E��l0>�����/w)5�þ?�jE7H>�IYF9���`^�w N�:��`����&B��e8v�-~u��Z]а1|}Hv ������y|��t�I��~f�F�D�*f��Z��A��3Pl��
1
+ 15��@`�M�0�ˆ=����
2
+ ��ʕu�J��n+x*�@�<,yƔ<�!�X�v�}�G}�I�V�u����e�������1�QM��U����ؑ���lޮ����3��u����?��l.�mxp����݀%A{QJ�}��+�vt*�R'�K��?o�0SB ���ք�WKt��Gbu=s er�Tk8�@�3q���ٺI�OA+�^�C�5Ph'?��]}��S����'Ì������K�B�U�