minitest 5.1.0 → 5.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8b0d13fa089e876d7136d72563684a26daf5559c
4
- data.tar.gz: b3ad3800b28251404ce824efe8bbdcd3219d2c64
3
+ metadata.gz: 75dbf80a230ec9d14a251d9dda5e806ff61c9f57
4
+ data.tar.gz: 23b3fd30f8362ca16d2d76c3e5c12394b61e74ee
5
5
  SHA512:
6
- metadata.gz: 87729f6352a71b2fe091a8822eb0765f139ee10b920c8afce63b5c285d60ae983dabfc7eb8acff8df8ffdac3521815c6ba66ae677767c79f8517554c286e6b96
7
- data.tar.gz: 86724ca0e04025f5fb697454fd2544db1d68f3d0ece9f2dd86d08e181397dab9c09108d08274c9a8babd6bd7c884afbf4556c7440c72f767befd6d9d6d1e1fb8
6
+ metadata.gz: 4b731165061b36c7086e94fad24eff5f078b97b74decfe82d3202b56bee3df1106ee6be823f9e8253d4e1233935c29fb3763906f35f3e3ae4cf25cf426a1e34f
7
+ data.tar.gz: 2355ed75ddee07dc9ebd2640d1bab4a68d0a27681c87b3909c1dfdfd3d1b53b9a95522afcb0cc00649fa5d20337a75224ee73ce26c28bbeed827a2ae9af96483
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,9 @@
1
+ === 5.2.0 / 2013-12-13
2
+
3
+ * 1 minor enhancement:
4
+
5
+ * Change expectations to allow calling most on procs (but not calling the proc). (bhenderson+others)
6
+
1
7
  === 5.1.0 / 2013-12-05
2
8
 
3
9
  * 1 minor enhancement:
data/README.txt CHANGED
@@ -91,6 +91,8 @@ Given that you'd like to test the following class:
91
91
 
92
92
  === Unit tests
93
93
 
94
+ Define your tests as methods beginning with `test_`.
95
+
94
96
  require "minitest/autorun"
95
97
 
96
98
  class TestMeme < Minitest::Test
@@ -7,7 +7,7 @@ require "minitest/parallel"
7
7
  # :include: README.txt
8
8
 
9
9
  module Minitest
10
- VERSION = "5.1.0" # :nodoc:
10
+ VERSION = "5.2.0" # :nodoc:
11
11
 
12
12
  @@installed_at_exit ||= false
13
13
  @@after_run = []
@@ -1,4 +1,4 @@
1
- require "minitest/parallel_each"
1
+ require "minitest/parallel"
2
2
 
3
3
  class Minitest::Test
4
4
  class << self
@@ -8,10 +8,10 @@ class Module # :nodoc:
8
8
  self.class_eval <<-EOM
9
9
  def #{new_name} *args
10
10
  case
11
- when Proc === self then
12
- Minitest::Spec.current.#{meth}(*args, &self)
13
11
  when #{!!dont_flip} then
14
12
  Minitest::Spec.current.#{meth}(self, *args)
13
+ when Proc === self then
14
+ Minitest::Spec.current.#{meth}(*args, &self)
15
15
  else
16
16
  Minitest::Spec.current.#{meth}(args.first, self, *args[1..-1])
17
17
  end
@@ -557,6 +557,12 @@ describe Minitest::Spec, :let do
557
557
  proc { let(:test_value) { true } }.must_raise ArgumentError
558
558
  end
559
559
  end
560
+
561
+ it 'procs come after dont_flip' do
562
+ p = proc{ }
563
+ assert_respond_to p, :call
564
+ p.must_respond_to :call
565
+ end
560
566
  end
561
567
 
562
568
  describe Minitest::Spec, :subject do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.0
4
+ version: 5.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
@@ -29,7 +29,7 @@ cert_chain:
29
29
  Y4evBVezr3SjXz08vPqRO5YRdO3zfeMT8gBjRqZjWJGMZ2lD4XNfrs7eky74CyZw
30
30
  xx3n58i0lQkBE1EpKE0lFu/y
31
31
  -----END CERTIFICATE-----
32
- date: 2013-12-06 00:00:00.000000000 Z
32
+ date: 2013-12-14 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: rdoc
metadata.gz.sig CHANGED
Binary file