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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c47c24552004733e311fb281724958f311787ae88b3fd938d241a5e0bc7d013
4
- data.tar.gz: 76617ceaf124064e4b73cb3d380be02948e4ad19b080aff18285dc4d2106e82e
3
+ metadata.gz: c04cc581f78e6b4009fa366fed7848b3f0251a1e046a8fd11ce8ef6d7f9fad3e
4
+ data.tar.gz: 8e81b61068068ec0d197d970c1cbb9db0831b82726e60ec06b94314d75b693b1
5
5
  SHA512:
6
- metadata.gz: 6b95bf869d8bd92bbb7e068a61ca842c9015526028d324fb0a4d6bb83755b91ad504b1eef4aa7be6b517052388c0b90ae5294bd20f828d2f1d0b1cd9dd212fd0
7
- data.tar.gz: 1fc572626856a6c1dc97984d778f38be1c15db1c859882b47fabc9e2ffde3917c4274cfdc8d8107364d68b48bd3f0e081a94a88df663fa9ec59f4f7ea118b3e6
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 "#{ test_name } is already defined in #{ self }"
21
+ raise "#{test_name} is already defined in #{self}"
22
22
  end
23
23
 
24
24
  define_method(test_name, &block)
@@ -1,5 +1,5 @@
1
1
  module Minitest
2
2
  module Candy
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
@@ -9,19 +9,19 @@ module Minitest
9
9
  include Minitest::Candy::Assertions
10
10
 
11
11
  # Prefer `assert_not_*`` than `refute_*``:
12
- alias :assert_raise :assert_raises
13
- alias :assert_not_empty :refute_empty
14
- alias :assert_not_equal :refute_equal
15
- alias :assert_not_in_delta :refute_in_delta
16
- alias :assert_not_in_epsilon :refute_in_epsilon
17
- alias :assert_not_includes :refute_includes
18
- alias :assert_not_instance_of :refute_instance_of
19
- alias :assert_not_kind_of :refute_kind_of
20
- alias :assert_no_match :refute_match
21
- alias :assert_not_nil :refute_nil
22
- alias :assert_not_operator :refute_operator
23
- alias :assert_not_predicate :refute_predicate
24
- alias :assert_not_respond_to :refute_respond_to
25
- alias :assert_not_same :refute_same
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.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 00:00:00.000000000 Z
11
+ date: 2021-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest