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 +0 -0
- data/History.txt +7 -0
- data/lib/minitest/spec.rb +1 -7
- data/lib/minitest/unit.rb +1 -11
- data/test/minitest/test_minitest_spec.rb +4 -4
- metadata +4 -4
- metadata.gz.sig +2 -2
data.tar.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
data/lib/minitest/spec.rb
CHANGED
@@ -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
|
194
|
+
name = "test_%04d_%s" % [ @specs, desc ]
|
201
195
|
|
202
196
|
define_method name, &block
|
203
197
|
|
data/lib/minitest/unit.rb
CHANGED
@@ -645,7 +645,7 @@ module MiniTest
|
|
645
645
|
end
|
646
646
|
|
647
647
|
class Unit # :nodoc:
|
648
|
-
VERSION = "3.0
|
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(
|
642
|
-
inner_methods1 = %w(
|
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
|
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 = ['
|
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:
|
4
|
+
hash: 3
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 3
|
8
|
-
- 0
|
9
8
|
- 1
|
10
|
-
|
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-
|
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
|
-
|
2
|
-
|
1
|
+
1�5��@`�M�0�=����
|
2
|
+
��ʕu�J��n+x*�@�<,yƔ<�!�X�v�}�G}�I�V�u����e�������1�QM��U����ؑ���lޮ����3��u����?��l.�mxp����݀%A{Q�J�}��+�vt*�R'�K��?o�0SB ���ք�WKt��Gb�u=s�er�T�k8�@�3�q���ٺI�OA+�^�C�5Ph'?��]�}��S����'Ì������K�B�U�
|