Skip to content

Commit

Permalink
Updated rake specs for latest assertions.
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//src/minitest/dev/": change = 12550]
  • Loading branch information
zenspider committed Feb 11, 2020
1 parent 7b01f94 commit b670f16
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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)
Expand Down

0 comments on commit b670f16

Please sign in to comment.