From b0459d2c44eb3b138ee9ece15ecd0b0083fcc896 Mon Sep 17 00:00:00 2001 From: Travis Vander Hoop Date: Thu, 6 Jun 2024 06:05:44 -0600 Subject: [PATCH] Update case.ex with correct `:since` for register_test/6 (#13642) while addressing the `ExUnit.Case.register_test/3` deprecation in https://github.com/elixir-wallaby/wallaby/pull/776, I wondered how long `register_test/6` had been around. In looking at the source and the docs, I uncovered what I believe is an incorrect `since` attribute --- lib/ex_unit/lib/ex_unit/case.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ex_unit/lib/ex_unit/case.ex b/lib/ex_unit/lib/ex_unit/case.ex index 3295ebaf32b..00b5eaf53fe 100644 --- a/lib/ex_unit/lib/ex_unit/case.ex +++ b/lib/ex_unit/lib/ex_unit/case.ex @@ -602,7 +602,7 @@ defmodule ExUnit.Case do display. You can use `ExUnit.plural_rule/2` to set a custom pluralization. """ - @doc since: "1.10.0" + @doc since: "1.11.0" def register_test(mod, file, line, test_type, name, tags) do unless Module.has_attribute?(mod, :ex_unit_tests) do raise "cannot define #{test_type}. Please make sure you have invoked " <>