We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b01f94 commit b670f16Copy full SHA for b670f16
Rakefile
@@ -21,7 +21,7 @@ task :specs do
21
require "minitest/spec"
22
23
pos_prefix, neg_prefix = "must", "wont"
24
- skip_re = /^(must|wont)$|wont_(throw)|must_(block|not?_|nothing|raise$)/x
+ skip_re = /^(must|wont)$|wont_(throw)|must_(block|not?_|nothing|send|raise$)/x
25
dont_flip_re = /(must|wont)_(include|respond_to)/
26
27
map = {
@@ -32,6 +32,8 @@ task :specs do
32
/_includes/ => "_include",
33
/(must|wont)_(.*_of|nil|silent|empty)/ => '\1_be_\2',
34
/must_raises/ => "must_raise",
35
+ /(must|wont)_predicate/ => '\1_be',
36
+ /(must|wont)_path_exists/ => 'path_\1_exist',
37
}
38
39
expectations = Minitest::Expectations.public_instance_methods.map(&:to_s)
0 commit comments