Skip to content

Commit 212fad6

Browse files
committed
Fix Elixir 1.18 type check error
1 parent 46992b5 commit 212fad6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/support/test_case.ex

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ defmodule NervesTest.Case do
5050

5151
defmacro in_fixture(which, block) do
5252
module = inspect(__CALLER__.module)
53-
function = Atom.to_string(elem(__CALLER__.function, 0))
54-
tmp = Path.join(module, function)
53+
{function, _} = __CALLER__.function
54+
tmp = Path.join(module, Atom.to_string(function))
5555

5656
quote do
5757
unquote(__MODULE__).in_fixture(unquote(which), unquote(tmp), unquote(block))

0 commit comments

Comments
 (0)