minitest 5.8.0 → 5.8.1

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: cadf6da908e8558c23ccb2b48f04440c58548170
4
- data.tar.gz: 3da4643eb6db1d74cdac7ba8aaa47f74865ae5fb
3
+ metadata.gz: 9ce3b35ade1c69e18fa8f2d4efb634f71716a8b3
4
+ data.tar.gz: f346df68eec6c780dc5138b714dde2c819877f14
5
5
  SHA512:
6
- metadata.gz: 8c522d5cd91d724391203d28a4e18310113c368d42da3e3a068733414db307b8368a1fd4a28567bc9da19d6c374b7dffee98efe37deb53273f390f7c911c8d4f
7
- data.tar.gz: 4935850af98ba3ea0c2a784333d1c831c4feea72c5b88a903006d1feeba87aebabf02c47b81869d1cbf4eade1dcfda95216b2512509d1c61b2bfd739fad92039
6
+ metadata.gz: 08de5f8c0ca0fe558015d81640218fad99426172d18f28b58e3a442962ebb32a1837316fa767e644cda30df4cdbc960c7b12c8fd1a9caf3e95bdef8a00ed8c9d
7
+ data.tar.gz: 1c7586442edc9c22048a64215abc1040bf41874feff7bb92d04a40ceb965fa258400e7a5fc24489be2ca471322dbb713628b0bb9e1a3d167b4181faf9f913b65
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,9 @@
1
+ === 5.8.1 / 2015-09-23
2
+
3
+ * 1 minor enhancement:
4
+
5
+ * Refactor assert_raises to be cleaner and to pass SystemExit and SignalException. (bhenderson)
6
+
1
7
  === 5.8.0 / 2015-08-06
2
8
 
3
9
  * 2 minor enhancements:
@@ -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
@@ -7,7 +7,7 @@ require "minitest/parallel"
7
7
  # :include: README.rdoc
8
8
 
9
9
  module Minitest
10
- VERSION = "5.8.0" # :nodoc:
10
+ VERSION = "5.8.1" # :nodoc:
11
11
  ENCS = "".respond_to? :encoding # :nodoc:
12
12
 
13
13
  @@installed_at_exit ||= false
@@ -298,17 +298,18 @@ module Minitest
298
298
 
299
299
  begin
300
300
  yield
301
- rescue Minitest::Skip => e
302
- return e if exp.include? Minitest::Skip
303
- raise e
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
- expected = exp.any? { |ex| e.kind_of? ex }
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.0
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
- MIIDPjCCAiagAwIBAgIBAjANBgkqhkiG9w0BA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0N5GQv1b5AO
30
- VpzF30vNaJK6ZT7xlIsIlwmH
25
+ AQB+Hx8xUgrpZa4P8H8gR8zme5kISwQrG80MbpqJV6/G3/ZicRFhN5sjwu0uHGue
26
+ bd9Cymf6oIRwHVarJux2M32T6bL07Hmi07w2QaPc3MnMKB/D46SRZ2JSSGPFRBTc
27
+ SilobMRoGs/7B15uGFUEnNrCB/ltMqhwwSx1r++UQPfeySHEV9uqu03E5Vb7J37O
28
+ 2Er6PLXHRiYsIycD1LkMi6YnixdITRHmrqJYE2rsjaIfpIehiusVAPHkNf7qbpHq
29
+ qx3h45R1CAsObX0SQDIT+rRbQrtKz1GHIZTOFYvEJjUY1XmRTZupD3CJ8Q7sDqSy
30
+ NLq5jm1fq6Y9Uolu3RJbmycf
31
31
  -----END CERTIFICATE-----
32
- date: 2015-08-06 00:00:00.000000000 Z
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.13'
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.13'
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