lib/minitest/keyword.rb in minitest-keyword-1.0.2 vs lib/minitest/keyword.rb in minitest-keyword-2.0.0
- old
+ new
@@ -15,10 +15,13 @@
cls: :class,
exp: :expected,
meth: :method,
msg: :message,
obj: :object,
+ op: :operator,
+ o1: :receiver,
+ o2: :argument,
sym: :symbol
}.freeze
# Raised if someone tries to pass both the regular arguments and the
# keyword arguments
@@ -45,10 +48,10 @@
Assertions
.instance_methods
.grep(/assert|refute/)
.each do |method_name|
parameters = Assertions.instance_method(method_name).parameters
- next if parameters.empty?
+ next if parameters.empty? || method_name == :assert_send
define_method(method_name) do |*args, **kwargs, &block|
passed_args = []
passed_kwargs = {}