minitest 2.6.1 → 2.6.2

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,14 @@
1
+ === 2.6.2 / 2011-10-19
2
+
3
+ * 1 minor enhancement:
4
+
5
+ * Added link to vim bundle. (sunaku)
6
+
7
+ * 2 bug fixes:
8
+
9
+ * Force gem activation in hoe minitest plugin
10
+ * Support RUBY_VERSION='2.0.0' (nagachika)
11
+
1
12
  === 2.6.1 / 2011-09-27
2
13
 
3
14
  * 2 bug fixes:
data/README.txt CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  home :: https://github.com/seattlerb/minitest
4
4
  rdoc :: http://docs.seattlerb.org/minitest
5
+ vim :: https://github.com/sunaku/vim-ruby-minitest
5
6
 
6
7
  == DESCRIPTION:
7
8
 
@@ -1,5 +1,6 @@
1
1
  module Hoe::Minitest
2
2
  def initialize_minitest
3
+ gem "minitest"
3
4
  require 'minitest/unit'
4
5
  version = MiniTest::Unit::VERSION.split(/\./).first(2).join(".")
5
6
 
@@ -18,7 +18,7 @@ module MiniTest
18
18
 
19
19
  class Skip < Assertion; end
20
20
 
21
- file = if RUBY_VERSION =~ /^1\.9/ then # bt's expanded, but __FILE__ isn't :(
21
+ file = if RUBY_VERSION >= '1.9.0' then # bt's expanded, but __FILE__ isn't :(
22
22
  File.expand_path __FILE__
23
23
  elsif __FILE__ =~ /^[^\.]/ then # assume both relative
24
24
  require 'pathname'
@@ -247,7 +247,7 @@ module MiniTest
247
247
  end
248
248
 
249
249
  ##
250
- # Fails unless +obj+ is an instace of +cls+.
250
+ # Fails unless +obj+ is an instance of +cls+.
251
251
 
252
252
  def assert_instance_of cls, obj, msg = nil
253
253
  msg = message(msg) {
@@ -645,7 +645,7 @@ module MiniTest
645
645
  end
646
646
 
647
647
  class Unit
648
- VERSION = "2.6.1" # :nodoc:
648
+ VERSION = "2.6.2" # :nodoc:
649
649
 
650
650
  attr_accessor :report, :failures, :errors, :skips # :nodoc:
651
651
  attr_accessor :test_count, :assertion_count # :nodoc:
@@ -581,7 +581,7 @@ Finished tests in 0.00
581
581
  end
582
582
 
583
583
  def util_expand_bt bt
584
- if RUBY_VERSION =~ /^1\.9/ then
584
+ if RUBY_VERSION >= '1.9.0' then
585
585
  bt.map { |f| (f =~ /^\./) ? File.expand_path(f) : f }
586
586
  else
587
587
  bt
@@ -991,7 +991,7 @@ FILE:LINE:in `test_assert_raises_triggered_different'
991
991
  ---------------"
992
992
 
993
993
  actual = e.message.gsub(/^.+:\d+/, 'FILE:LINE')
994
- actual.gsub!(/block \(\d+ levels\) in /, '') if RUBY_VERSION =~ /^1\.9/
994
+ actual.gsub!(/block \(\d+ levels\) in /, '') if RUBY_VERSION >= '1.9.0'
995
995
 
996
996
  assert_equal expected, actual
997
997
  end
@@ -1012,7 +1012,7 @@ FILE:LINE:in `test_assert_raises_triggered_different_msg'
1012
1012
  ---------------"
1013
1013
 
1014
1014
  actual = e.message.gsub(/^.+:\d+/, 'FILE:LINE')
1015
- actual.gsub!(/block \(\d+ levels\) in /, '') if RUBY_VERSION =~ /^1\.9/
1015
+ actual.gsub!(/block \(\d+ levels\) in /, '') if RUBY_VERSION >= '1.9.0'
1016
1016
 
1017
1017
  assert_equal expected, actual
1018
1018
  end
@@ -1056,7 +1056,7 @@ FILE:LINE:in `test_assert_raises_triggered_subclass'
1056
1056
  ---------------"
1057
1057
 
1058
1058
  actual = e.message.gsub(/^.+:\d+/, 'FILE:LINE')
1059
- actual.gsub!(/block \(\d+ levels\) in /, '') if RUBY_VERSION =~ /^1\.9/
1059
+ actual.gsub!(/block \(\d+ levels\) in /, '') if RUBY_VERSION >= '1.9.0'
1060
1060
 
1061
1061
  assert_equal expected, actual
1062
1062
  end
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: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 6
9
- - 1
10
- version: 2.6.1
9
+ - 2
10
+ version: 2.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: 2011-09-28 00:00:00 Z
39
+ date: 2011-10-19 00:00:00 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: hoe
metadata.gz.sig CHANGED
Binary file