From a83fe2b1c237d223d09108b7ef1b217091addab3 Mon Sep 17 00:00:00 2001 From: Frank Hunleth Date: Thu, 19 Dec 2024 14:40:09 -0500 Subject: [PATCH] Fix Elixir 1.18 type check error --- test/support/test_case.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/support/test_case.ex b/test/support/test_case.ex index e493f47e..38fc5104 100644 --- a/test/support/test_case.ex +++ b/test/support/test_case.ex @@ -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))