minitest 4.6.1 → 4.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,9 @@
1
+ === 4.6.2 / 2013-02-27
2
+
3
+ * 1 minor enhancement:
4
+
5
+ * Change error output to match Class#method, making it easier to use -n filter.
6
+
1
7
  === 4.6.1 / 2013-02-14
2
8
 
3
9
  * 1 bug fix:
@@ -726,7 +726,7 @@ module MiniTest
726
726
  end
727
727
 
728
728
  class Unit # :nodoc:
729
- VERSION = "4.6.1" # :nodoc:
729
+ VERSION = "4.6.2" # :nodoc:
730
730
 
731
731
  attr_accessor :report, :failures, :errors, :skips # :nodoc:
732
732
  attr_accessor :test_count, :assertion_count # :nodoc:
@@ -959,14 +959,14 @@ module MiniTest
959
959
  when MiniTest::Skip then
960
960
  @skips += 1
961
961
  return "S" unless @verbose
962
- "Skipped:\n#{meth}(#{klass}) [#{location e}]:\n#{e.message}\n"
962
+ "Skipped:\n#{klass}##{meth} [#{location e}]:\n#{e.message}\n"
963
963
  when MiniTest::Assertion then
964
964
  @failures += 1
965
- "Failure:\n#{meth}(#{klass}) [#{location e}]:\n#{e.message}\n"
965
+ "Failure:\n#{klass}##{meth} [#{location e}]:\n#{e.message}\n"
966
966
  else
967
967
  @errors += 1
968
968
  bt = MiniTest::filter_backtrace(e.backtrace).join "\n "
969
- "Error:\n#{meth}(#{klass}):\n#{e.class}: #{e.message}\n #{bt}\n"
969
+ "Error:\n#{klass}##{meth}:\n#{e.class}: #{e.message}\n #{bt}\n"
970
970
  end
971
971
  @report << e
972
972
  e[0, 1]
@@ -23,7 +23,7 @@ class TestMiniTestUnit < MetaMetaMetaTestCase
23
23
  assert_equal 'F', @tu.puke('SomeClass', 'method_name', exception)
24
24
  assert_equal 1, @tu.failures
25
25
  assert_match(/^Failure.*Oh no!/m, @tu.report.first)
26
- assert_match("method_name(SomeClass) [unhappy]", @tu.report.first)
26
+ assert_match("SomeClass#method_name [unhappy]", @tu.report.first)
27
27
  end
28
28
 
29
29
  def test_class_puke_with_assertion_failed_and_long_backtrace
@@ -43,7 +43,7 @@ class TestMiniTestUnit < MetaMetaMetaTestCase
43
43
  assert_equal 'F', @tu.puke('TestSomeClass', 'test_method_name', exception)
44
44
  assert_equal 1, @tu.failures
45
45
  assert_match(/^Failure.*Oh no!/m, @tu.report.first)
46
- assert_match("test_method_name(TestSomeClass) [#{ex_location}]", @tu.report.first)
46
+ assert_match("TestSomeClass#test_method_name [#{ex_location}]", @tu.report.first)
47
47
  end
48
48
 
49
49
  def test_class_puke_with_assertion_failed_and_user_defined_assertions
@@ -66,7 +66,7 @@ class TestMiniTestUnit < MetaMetaMetaTestCase
66
66
  assert_equal 'F', @tu.puke('TestSomeClass', 'test_method_name', exception)
67
67
  assert_equal 1, @tu.failures
68
68
  assert_match(/^Failure.*Oh no!/m, @tu.report.first)
69
- assert_match("test_method_name(TestSomeClass) [#{ex_location}]", @tu.report.first)
69
+ assert_match("TestSomeClass#test_method_name [#{ex_location}]", @tu.report.first)
70
70
  end
71
71
 
72
72
  def test_class_puke_with_failure_and_flunk_in_backtrace
@@ -99,7 +99,7 @@ class TestMiniTestUnit < MetaMetaMetaTestCase
99
99
  assert_equal 'F', @tu.puke('TestSomeClass', 'test_method_name', exception)
100
100
  assert_equal 1, @tu.failures
101
101
  assert_match(/^Failure.*Oh no!/m, @tu.report.first)
102
- assert_match("test_method_name(TestSomeClass) [#{ex_location}]", @tu.report.first)
102
+ assert_match("TestSomeClass#test_method_name [#{ex_location}]", @tu.report.first)
103
103
  end
104
104
 
105
105
  def test_class_puke_with_non_failure_exception
@@ -287,7 +287,7 @@ class TestMiniTestRunner < MetaMetaMetaTestCase
287
287
  Finished tests in 0.00
288
288
 
289
289
  1) Error:
290
- test_error(#<Class:0xXXX>):
290
+ #<Class:0xXXX>#test_error:
291
291
  RuntimeError: unhandled exception
292
292
  FILE:LINE:in \`test_error\'
293
293
 
@@ -314,7 +314,7 @@ class TestMiniTestRunner < MetaMetaMetaTestCase
314
314
  Finished tests in 0.00
315
315
 
316
316
  1) Error:
317
- test_something(#<Class:0xXXX>):
317
+ #<Class:0xXXX>#test_something:
318
318
  RuntimeError: unhandled exception
319
319
  FILE:LINE:in \`teardown\'
320
320
 
@@ -341,7 +341,7 @@ class TestMiniTestRunner < MetaMetaMetaTestCase
341
341
  Finished tests in 0.00
342
342
 
343
343
  1) Failure:
344
- test_failure(#<Class:0xXXX>) [FILE:LINE]:
344
+ #<Class:0xXXX>#test_failure [FILE:LINE]:
345
345
  Failed assertion, no message given.
346
346
 
347
347
  2 tests, 2 assertions, 1 failures, 0 errors, 0 skips
@@ -490,7 +490,7 @@ class TestMiniTestRunner < MetaMetaMetaTestCase
490
490
  Finished tests in 0.00
491
491
 
492
492
  1) Skipped:
493
- test_skip(#<Class:0xXXX>) [FILE:LINE]:
493
+ #<Class:0xXXX>#test_skip [FILE:LINE]:
494
494
  not yet
495
495
 
496
496
  2 tests, 1 assertions, 0 failures, 0 errors, 1 skips
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: 37
4
+ hash: 35
5
5
  prerelease:
6
6
  segments:
7
7
  - 4
8
8
  - 6
9
- - 1
10
- version: 4.6.1
9
+ - 2
10
+ version: 4.6.2
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: 2013-02-15 00:00:00 Z
39
+ date: 2013-02-28 00:00:00 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rdoc
metadata.gz.sig CHANGED
Binary file