lib/minitest/keyword.rb in minitest-keyword-1.0.0 vs lib/minitest/keyword.rb in minitest-keyword-1.0.1

- old
+ new

@@ -38,10 +38,12 @@ end end Assertions.instance_methods.grep(/assert|refute/).each do |method_name| parameters = Assertions.instance_method(method_name).parameters + + # This check here for methods like `assert_silent` next if parameters.empty? # rubocop:disable Metrics/MethodLength define_method(method_name) do |*args, **kwargs, &block| passed_params = [] @@ -67,11 +69,11 @@ end end super(*passed_params, &block) end + # rubocop:enable Metrics/MethodLength end - # rubocop:enable Metrics/MethodLength end # Hook into the Minitest::Test class and prepend the Keyword module class Test prepend Keyword