minitest 5.8.0 → 5.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/History.rdoc +6 -0
- data/README.rdoc +1 -0
- data/lib/minitest.rb +1 -1
- data/lib/minitest/assertions.rb +9 -8
- data/test/minitest/test_minitest_unit.rb +12 -0
- metadata +12 -13
- metadata.gz.sig +0 -0
- data/.gemtest +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ce3b35ade1c69e18fa8f2d4efb634f71716a8b3
|
4
|
+
data.tar.gz: f346df68eec6c780dc5138b714dde2c819877f14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 08de5f8c0ca0fe558015d81640218fad99426172d18f28b58e3a442962ebb32a1837316fa767e644cda30df4cdbc960c7b12c8fd1a9caf3e95bdef8a00ed8c9d
|
7
|
+
data.tar.gz: 1c7586442edc9c22048a64215abc1040bf41874feff7bb92d04a40ceb965fa258400e7a5fc24489be2ca471322dbb713628b0bb9e1a3d167b4181faf9f913b65
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/History.rdoc
CHANGED
data/README.rdoc
CHANGED
@@ -455,6 +455,7 @@ minitest-bacon :: minitest-bacon extends minitest with bacon-like
|
|
455
455
|
minitest-bang :: Adds support for RSpec-style let! to immediately
|
456
456
|
invoke let statements before each test.
|
457
457
|
minitest-bisect :: Helps you isolate and debug random test failures.
|
458
|
+
minitest-blink1_reporter :: Display test results with a Blink1.
|
458
459
|
minitest-capistrano :: Assertions and expectations for testing
|
459
460
|
Capistrano recipes.
|
460
461
|
minitest-capybara :: Capybara matchers support for minitest unit and
|
data/lib/minitest.rb
CHANGED
data/lib/minitest/assertions.rb
CHANGED
@@ -298,17 +298,18 @@ module Minitest
|
|
298
298
|
|
299
299
|
begin
|
300
300
|
yield
|
301
|
-
rescue
|
302
|
-
|
303
|
-
|
301
|
+
rescue *exp => e
|
302
|
+
pass # count assertion
|
303
|
+
return e
|
304
|
+
rescue Minitest::Skip
|
305
|
+
# don't count assertion
|
306
|
+
raise
|
307
|
+
rescue SignalException, SystemExit
|
308
|
+
raise
|
304
309
|
rescue Exception => e
|
305
|
-
|
306
|
-
|
307
|
-
assert expected, proc {
|
310
|
+
flunk proc {
|
308
311
|
exception_details(e, "#{msg}#{mu_pp(exp)} exception expected, not")
|
309
312
|
}
|
310
|
-
|
311
|
-
return e
|
312
313
|
end
|
313
314
|
|
314
315
|
exp = exp.first if exp.size == 1
|
@@ -1293,6 +1293,18 @@ class TestMinitestUnitTestCase < Minitest::Test
|
|
1293
1293
|
assert_equal expected.chomp, actual
|
1294
1294
|
end
|
1295
1295
|
|
1296
|
+
def test_assert_raises_exit
|
1297
|
+
@tc.assert_raises SystemExit do
|
1298
|
+
exit 1
|
1299
|
+
end
|
1300
|
+
end
|
1301
|
+
|
1302
|
+
def test_assert_raises_signals
|
1303
|
+
@tc.assert_raises SignalException do
|
1304
|
+
raise SignalException, :INT
|
1305
|
+
end
|
1306
|
+
end
|
1307
|
+
|
1296
1308
|
def test_assert_respond_to
|
1297
1309
|
@tc.assert_respond_to "blah", :empty?
|
1298
1310
|
end
|
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.8.
|
4
|
+
version: 5.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Davis
|
@@ -10,9 +10,9 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
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FYvEJjUY1XmRTZupD3CJ8Q7sDqSy
|
30
|
+
NLq5jm1fq6Y9Uolu3RJbmycf
|
31
31
|
-----END CERTIFICATE-----
|
32
|
-
date: 2015-
|
32
|
+
date: 2015-09-23 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.14'
|
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.14'
|
62
62
|
description: |-
|
63
63
|
minitest provides a complete suite of testing facilities supporting
|
64
64
|
TDD, BDD, mocking, and benchmarking.
|
@@ -123,7 +123,6 @@ extra_rdoc_files:
|
|
123
123
|
- README.rdoc
|
124
124
|
files:
|
125
125
|
- .autotest
|
126
|
-
- .gemtest
|
127
126
|
- History.rdoc
|
128
127
|
- Manifest.txt
|
129
128
|
- README.rdoc
|
metadata.gz.sig
CHANGED
Binary file
|
data/.gemtest
DELETED
File without changes
|