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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/History.txt +6 -0
- data/README.txt +1 -0
- data/lib/minitest.rb +1 -1
- data/lib/minitest/spec.rb +2 -2
- data/test/minitest/test_minitest_spec.rb +12 -0
- metadata +4 -4
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f47bbe779a4b3440e7c036e3950509ca805ee78f
|
4
|
+
data.tar.gz: 3429ba5b8203bda3155ea91883a13d24bf85c00a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffc5e96a1536d5376e860dc633303588809f3b1a72abf60ff66da8e443b6003e202453916c3c6a7847a9403ce614b96df3048097fcbe3abcd19765ba455887d7
|
7
|
+
data.tar.gz: 41cf81a654cd874c79c0169f7d9f07bd906e3a5f252b53af2c70efd8dd67e43bb063024ca52fd4d288401c9b662cbf1e3631a16fe7abaa3f7710fef885f34e98
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
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
|
data/lib/minitest.rb
CHANGED
data/lib/minitest/spec.rb
CHANGED
@@ -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
|
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.
|
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-
|
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.
|
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.
|
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
|