Skip to content

Commit

Permalink
Update case.ex with correct :since for register_test/6 (#13642)
Browse files Browse the repository at this point in the history
while addressing the `ExUnit.Case.register_test/3` deprecation in elixir-wallaby/wallaby#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
  • Loading branch information
vanderhoop authored and josevalim committed Jun 6, 2024
1 parent 67b8b6c commit b0459d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ex_unit/lib/ex_unit/case.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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 " <>
Expand Down

0 comments on commit b0459d2

Please sign in to comment.