module ActiveSupport::Testing::MethodCallAssertions
def assert_called_with(object, method_name, args, returns: false, **kwargs, &block)
def assert_called_with(object, method_name, args, returns: false, **kwargs, &block) mock = Minitest::Mock.new expect_called_with(mock, args, returns: returns, **kwargs) object.stub(method_name, mock, &block) assert_mock(mock) end