Skip to content

Commit

Permalink
Fix Elixir 1.18 type check error
Browse files Browse the repository at this point in the history
  • Loading branch information
fhunleth committed Dec 19, 2024
1 parent ce83760 commit a83fe2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/support/test_case.ex
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ defmodule NervesTest.Case do

defmacro in_fixture(which, block) do
module = inspect(__CALLER__.module)
function = Atom.to_string(elem(__CALLER__.function, 0))
tmp = Path.join(module, function)
{function, _} = __CALLER__.function
tmp = Path.join(module, Atom.to_string(function))

quote do
unquote(__MODULE__).in_fixture(unquote(which), unquote(tmp), unquote(block))
Expand Down

0 comments on commit a83fe2b

Please sign in to comment.