How to setup data when writing test in Elixir
Story
Recently, I decided to update several test files that uses the same test setup for their data. Mostly the code was written with the same structure
# assuming you are using ExMachina package
inserted_at = DateTime.utc_now() |> DateTime.add(-30, ...
paugramming.hashnode.dev3 min read