minitest-candy 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/minitest/candy/declarative.rb +1 -1
- data/lib/minitest/candy/version.rb +1 -1
- data/lib/minitest/candy.rb +14 -14
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c04cc581f78e6b4009fa366fed7848b3f0251a1e046a8fd11ce8ef6d7f9fad3e
|
4
|
+
data.tar.gz: 8e81b61068068ec0d197d970c1cbb9db0831b82726e60ec06b94314d75b693b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 745cd9f5c4c3ad2b3538849ec091686e9bfb62be6cad4b6d0da2deefd621d0cbee717402d1ddc96c4f6443a4f64f55df05103bbfdc155db97da26913f2963194
|
7
|
+
data.tar.gz: edee7fc4264758829fa36626959cae039efbcabfb1a2dada0c5dd3d8036ea1cf25283b53ea9f57b5125919bfed04f726e89ef6dd87923b1efa5c526c4feb0fdd
|
@@ -18,7 +18,7 @@ module Minitest
|
|
18
18
|
test_name = sprintf("test_%s", name.gsub(/\s+/, "_"))
|
19
19
|
|
20
20
|
if method_defined?(test_name)
|
21
|
-
raise "#{
|
21
|
+
raise "#{test_name} is already defined in #{self}"
|
22
22
|
end
|
23
23
|
|
24
24
|
define_method(test_name, &block)
|
data/lib/minitest/candy.rb
CHANGED
@@ -9,19 +9,19 @@ module Minitest
|
|
9
9
|
include Minitest::Candy::Assertions
|
10
10
|
|
11
11
|
# Prefer `assert_not_*`` than `refute_*``:
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
12
|
+
alias_method :assert_raise, :assert_raises
|
13
|
+
alias_method :assert_not_empty, :refute_empty
|
14
|
+
alias_method :assert_not_equal, :refute_equal
|
15
|
+
alias_method :assert_not_in_delta, :refute_in_delta
|
16
|
+
alias_method :assert_not_in_epsilon, :refute_in_epsilon
|
17
|
+
alias_method :assert_not_includes, :refute_includes
|
18
|
+
alias_method :assert_not_instance_of, :refute_instance_of
|
19
|
+
alias_method :assert_not_kind_of, :refute_kind_of
|
20
|
+
alias_method :assert_no_match, :refute_match
|
21
|
+
alias_method :assert_not_nil, :refute_nil
|
22
|
+
alias_method :assert_not_operator, :refute_operator
|
23
|
+
alias_method :assert_not_predicate, :refute_predicate
|
24
|
+
alias_method :assert_not_respond_to, :refute_respond_to
|
25
|
+
alias_method :assert_not_same, :refute_same
|
26
26
|
end
|
27
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-candy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Francesco Rodriguez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-09-
|
11
|
+
date: 2021-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|