minitest-no_assertions 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: 2809ac0acfff821f113674352f5761ab8e73bf9f1893d04903964144e604db09
4
- data.tar.gz: '0194375fe56ed7d1b9ff34daf73c21482fa534440637d6deb0e87d797d3611f3'
3
+ metadata.gz: 3fa8e58c479972f614bc5c56e24686c6c4d900ca09638db94a91ec76de9afd71
4
+ data.tar.gz: 709846a9faf5a1d150b07a36b28ffaac1dc14e3f9bbe89e4a62cd28eeed901d7
5
5
  SHA512:
6
- metadata.gz: abc216e0b959cef8e97120c6d2d1c92b806480b47bbc45392113dc98b9986cfd53e933708f282b79b1f677dc33d3e76a7661f9c8eb67b50cf640e4e30b6c8f1c
7
- data.tar.gz: c66350011a5c71a8f819c1ab3e6f22c2103fb219fc6d7ab5f512f65de8e1701ce08407c05303e53e3c2a59b24e5af8f1992a5a239f80ceab2abd9c2779636217
6
+ metadata.gz: 6dbf0e549b5b85f26b2630cbd3b22251fb1dc61461a2c9e06822b6030a2c57ef898de06a2cea4eb3e962a21d1ac68d133b428d7ca1bfaa9c3e24dbd8d2dd41e0
7
+ data.tar.gz: e7a9ebc5bd8834c8b61074132431f1360f90639e31f6a7d7a72d563c3bda02ea99f019b63f1d7e6143c005c09445eb413721d4514495484d222c4767bd5c32a8
data/.gitignore CHANGED
@@ -6,3 +6,5 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
+
10
+ Gemfile.lock
@@ -1,5 +1,5 @@
1
1
  module Minitest
2
2
  module NoAssertions
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
@@ -9,7 +9,7 @@ module Minitest
9
9
  end
10
10
 
11
11
  def record(result)
12
- if result.assertions.zero?
12
+ if result.passed? && result.assertions.zero?
13
13
  msg = "%s#%s has no assertions!!" % [result.klass, result.name]
14
14
  raise StandardError, msg
15
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-no_assertions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuji Yaginuma
@@ -63,7 +63,6 @@ files:
63
63
  - ".travis.yml"
64
64
  - CODE_OF_CONDUCT.md
65
65
  - Gemfile
66
- - Gemfile.lock
67
66
  - LICENSE.txt
68
67
  - README.md
69
68
  - Rakefile
data/Gemfile.lock DELETED
@@ -1,22 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- minitest-no_assertions (0.1.1)
5
- minitest
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- minitest (5.11.3)
11
- rake (10.5.0)
12
-
13
- PLATFORMS
14
- ruby
15
-
16
- DEPENDENCIES
17
- bundler (~> 1.16)
18
- minitest-no_assertions!
19
- rake (~> 10.0)
20
-
21
- BUNDLED WITH
22
- 1.16.4