Skip to content

Commit b670f16

Browse files
committed
Updated rake specs for latest assertions.
[git-p4: depot-paths = "//src/minitest/dev/": change = 12550]
1 parent 7b01f94 commit b670f16

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Rakefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ task :specs do
2121
require "minitest/spec"
2222

2323
pos_prefix, neg_prefix = "must", "wont"
24-
skip_re = /^(must|wont)$|wont_(throw)|must_(block|not?_|nothing|raise$)/x
24+
skip_re = /^(must|wont)$|wont_(throw)|must_(block|not?_|nothing|send|raise$)/x
2525
dont_flip_re = /(must|wont)_(include|respond_to)/
2626

2727
map = {
@@ -32,6 +32,8 @@ task :specs do
3232
/_includes/ => "_include",
3333
/(must|wont)_(.*_of|nil|silent|empty)/ => '\1_be_\2',
3434
/must_raises/ => "must_raise",
35+
/(must|wont)_predicate/ => '\1_be',
36+
/(must|wont)_path_exists/ => 'path_\1_exist',
3537
}
3638

3739
expectations = Minitest::Expectations.public_instance_methods.map(&:to_s)

0 commit comments

Comments
 (0)