News for hackers. Stuff that matters.
Re:DRYing Elixir Tests with Macros by matthewrudy on Wednesday February 17, 2016 @02:38PM (#11120601)
If you look at the code, that's actually what the author has done.

They've made a `make_unauthenticated_request` function that does the work, and the macro just calls it.

But, I agree, I'd probably have skipped the macro. And DRYed it up with just the function.

Re:DRYing Elixir Tests with Macros by 147 on Wednesday February 17, 2016 @02:45PM (#11120661)
Right. That's exactly what I'm trying to point out. The point of the macro is to get the test form stuff.