News for hackers. Stuff that matters.
Re:DRYing Elixir Tests with Macros by pmarreck on Wednesday February 17, 2016 @11:43AM (#11119092)
I think this would be done better as a private function that takes a conn, a method, an action and an expected response code.

No need to complexify things unless you absolutely must.

Re:DRYing Elixir Tests with Macros by rozap on Wednesday February 17, 2016 @01:06PM (#11119841)
Agreed. Elixir's first rule of macros is to not use macros. Generally idiomatic elixir is to try to encapsulate your problem in (ordered by priority) a 1) data structure 2) function 3) macro. So if you can express your problem in something other than a macro, do so.