minitest 2.12.0 → 2.12.1

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,13 @@
1
+ === 2.12.1 / 2012-04-10
2
+
3
+ * 1 minor enhancement:
4
+
5
+ * Added ruby releases to History.txt to make it easier to see what you're missing
6
+
7
+ * 1 bug fix:
8
+
9
+ * Rolled my own deprecate msg to allow MT to work with rubygems < 1.7
10
+
1
11
  === 2.12.0 / 2012-04-03
2
12
 
3
13
  * 4 minor enhancements:
@@ -153,7 +163,7 @@
153
163
 
154
164
  * Fixed Mock.respond_to?(var) to work with strings. (holli)
155
165
 
156
- === 2.5.1 / 2011-08-27
166
+ === 2.5.1 / 2011-08-27 // ruby 1.9.3: p0, p125, p34579
157
167
 
158
168
  * 2 minor enhancements:
159
169
 
@@ -324,7 +334,7 @@
324
334
  * Added options output at the top of the run, for fatal run debugging (tenderlove)
325
335
  * Spec's describe method returns created class
326
336
 
327
- === 1.6.0 / 2010-03-27
337
+ === 1.6.0 / 2010-03-27 // ruby 1.9.2-p290
328
338
 
329
339
  * 10 minor enhancements:
330
340
 
@@ -395,7 +405,7 @@
395
405
  * Switched to __name__ to avoid common ivar name.
396
406
  * Fixed indentation in test file (1.9).
397
407
 
398
- === 1.3.1 / 2009-01-20
408
+ === 1.3.1 / 2009-01-20 // ruby 1.9.1-p431
399
409
 
400
410
  * 1 minor enhancement:
401
411
 
@@ -1,6 +1,5 @@
1
1
  require 'optparse'
2
2
  require 'rbconfig'
3
- require 'rubygems/deprecate'
4
3
 
5
4
  ##
6
5
  # Minimal (mostly drop-in) replacement for test-unit.
@@ -187,6 +186,7 @@ module MiniTest
187
186
  # Fails unless the block returns a true value.
188
187
 
189
188
  def assert_block msg = nil
189
+ warn "NOTE: MiniTest::Unit::TestCase#assert_block is deprecated, use assert. It will be removed on or after 2012-06-01."
190
190
  msg = message(msg) { "Expected block to return true value" }
191
191
  assert yield, msg
192
192
  end
@@ -642,13 +642,10 @@ module MiniTest
642
642
  msg ||= "Skipped, no message given"
643
643
  raise MiniTest::Skip, msg, bt
644
644
  end
645
-
646
- extend Gem::Deprecate
647
- deprecate :assert_block, :assert, 2012, 9
648
645
  end
649
646
 
650
647
  class Unit # :nodoc:
651
- VERSION = "2.12.0" # :nodoc:
648
+ VERSION = "2.12.1" # :nodoc:
652
649
 
653
650
  attr_accessor :report, :failures, :errors, :skips # :nodoc:
654
651
  attr_accessor :test_count, :assertion_count # :nodoc:
@@ -1,6 +1,5 @@
1
1
  require 'pathname'
2
2
  require 'test/metametameta'
3
- require 'rubygems/deprecate'
4
3
 
5
4
  module MyModule; end
6
5
  class AnError < StandardError; include MyModule; end
@@ -698,10 +697,11 @@ class TestMiniTestUnitTestCase < MiniTest::Unit::TestCase
698
697
  end
699
698
  end
700
699
 
701
- include Gem::Deprecate
702
-
703
700
  def test_assert_block
704
- skip_during do
701
+ exp = ["NOTE: MiniTest::Unit::TestCase#assert_block is deprecated,",
702
+ "use assert. It will be removed on or after 2012-06-01.\n"].join " "
703
+
704
+ assert_output "", exp do
705
705
  @tc.assert_block do
706
706
  true
707
707
  end
@@ -709,7 +709,7 @@ class TestMiniTestUnitTestCase < MiniTest::Unit::TestCase
709
709
  end
710
710
 
711
711
  def test_assert_block_triggered
712
- skip_during do
712
+ assert_output do
713
713
  util_assert_triggered "blah.\nExpected block to return true value." do
714
714
  @tc.assert_block "blah" do
715
715
  false
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: 63
4
+ hash: 61
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 12
9
- - 0
10
- version: 2.12.0
9
+ - 1
10
+ version: 2.12.1
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-04-04 00:00:00 Z
39
+ date: 2012-04-11 00:00:00 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rdoc
metadata.gz.sig CHANGED
Binary file