We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46992b5 commit 212fad6Copy full SHA for 212fad6
test/support/test_case.ex
@@ -50,8 +50,8 @@ defmodule NervesTest.Case do
50
51
defmacro in_fixture(which, block) do
52
module = inspect(__CALLER__.module)
53
- function = Atom.to_string(elem(__CALLER__.function, 0))
54
- tmp = Path.join(module, function)
+ {function, _} = __CALLER__.function
+ tmp = Path.join(module, Atom.to_string(function))
55
56
quote do
57
unquote(__MODULE__).in_fixture(unquote(which), unquote(tmp), unquote(block))
0 commit comments