Skip to content
Permalink
Browse files

Updated rake specs for latest assertions.

[git-p4: depot-paths = "//src/minitest/dev/": change = 12550]
  • Loading branch information
zenspider committed Feb 11, 2020
1 parent 7b01f94 commit b670f162ed0675f45ad816c02374ba7669e3603f
Showing with 3 additions and 1 deletion.
  1. +3 −1 Rakefile
@@ -21,7 +21,7 @@ task :specs do
require "minitest/spec"

pos_prefix, neg_prefix = "must", "wont"
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
dont_flip_re = /(must|wont)_(include|respond_to)/

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

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

0 comments on commit b670f16

Please sign in to comment.
You can’t perform that action at this time.