minitest 5.2.2 → 5.2.3

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: 0298ef5657934b0ce29bce4d32eb327726391cd0
4
- data.tar.gz: 41eb94c7d812fd5e771c108e11b5a26ca3e33075
3
+ metadata.gz: f47bbe779a4b3440e7c036e3950509ca805ee78f
4
+ data.tar.gz: 3429ba5b8203bda3155ea91883a13d24bf85c00a
5
5
  SHA512:
6
- metadata.gz: 158a3553a7678e92a735da2c116f496522e17cb6ebd770efade0b9c4f9b10b0496963abec21cc1159aa12cc1808c28495e888cb6e184d399573a9c037ed26897
7
- data.tar.gz: b95653c4c750fe3f0547bbeb07ddfe919d151d1e9cde12a011a04cb5c679b5aa651700b8fdc767a6fe2889477333e9ca6d1dafc043ba03850c96ed63b48326ed
6
+ metadata.gz: ffc5e96a1536d5376e860dc633303588809f3b1a72abf60ff66da8e443b6003e202453916c3c6a7847a9403ce614b96df3048097fcbe3abcd19765ba455887d7
7
+ data.tar.gz: 41cf81a654cd874c79c0169f7d9f07bd906e3a5f252b53af2c70efd8dd67e43bb063024ca52fd4d288401c9b662cbf1e3631a16fe7abaa3f7710fef885f34e98
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,9 @@
1
+ === 5.2.3 / 2014-02-10
2
+
3
+ * 1 bug fix:
4
+
5
+ * Fixed Spec#let check to allow overriding of other lets. (mvz)
6
+
1
7
  === 5.2.2 / 2014-01-22
2
8
 
3
9
  * 1 minor enhancement:
data/README.txt CHANGED
@@ -425,6 +425,7 @@ minitest-predicates :: Adds support for .predicate? methods
425
425
  minitest-rails :: MiniTest integration for Rails 3.x
426
426
  minitest-rails-capybara :: Capybara integration for MiniTest::Rails
427
427
  minitest-reporters :: Create customizable MiniTest output formats
428
+ minitest-rspec_mocks :: Use RSpec Mocks with Minitest
428
429
  minitest-should_syntax :: RSpec-style +x.should == y+ assertions for MiniTest
429
430
  minitest-shouldify :: Adding all manner of shoulds to MiniTest (bad idea)
430
431
  minitest-spec-context :: Provides rspec-ish context method to MiniTest::Spec
@@ -7,7 +7,7 @@ require "minitest/parallel"
7
7
  # :include: README.txt
8
8
 
9
9
  module Minitest
10
- VERSION = "5.2.2" # :nodoc:
10
+ VERSION = "5.2.3" # :nodoc:
11
11
 
12
12
  @@installed_at_exit ||= false
13
13
  @@after_run = []
@@ -225,8 +225,8 @@ class Minitest::Spec < Minitest::Test
225
225
  def let name, &block
226
226
  name = name.to_s
227
227
  raise ArgumentError, 'name cannot begin with "test"' if name =~ /\Atest/
228
- raise ArgumentError, "##{name} cannot be overwritten" if
229
- (instance_methods.map(&:to_s) - %w[subject]).include? name
228
+ raise ArgumentError, "##{name} cannot be overridden" if
229
+ (Minitest::Spec.instance_methods.map(&:to_s) - %w[subject]).include? name
230
230
 
231
231
  define_method name do
232
232
  @_memoized ||= {}
@@ -560,6 +560,18 @@ describe Minitest::Spec, :let do
560
560
  proc { self.class.let(:message) { true } }.must_raise ArgumentError
561
561
  end
562
562
 
563
+ it "doesn't raise an error if it is just another let" do
564
+ proc do
565
+ describe :outer do
566
+ let(:bar)
567
+ describe :inner do
568
+ let(:bar)
569
+ end
570
+ end
571
+ :good
572
+ end.call.must_equal :good
573
+ end
574
+
563
575
  it 'procs come after dont_flip' do
564
576
  p = proc{ }
565
577
  assert_respond_to p, :call
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.2.2
4
+ version: 5.2.3
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: 2014-01-22 00:00:00.000000000 Z
32
+ date: 2014-02-11 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: rdoc
@@ -51,14 +51,14 @@ dependencies:
51
51
  requirements:
52
52
  - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: '3.8'
54
+ version: '3.9'
55
55
  type: :development
56
56
  prerelease: false
57
57
  version_requirements: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: '3.8'
61
+ version: '3.9'
62
62
  description: |-
63
63
  minitest provides a complete suite of testing facilities supporting
64
64
  TDD, BDD, mocking, and benchmarking.
metadata.gz.sig CHANGED
Binary file