2 ms·
You would have to assert equality on the value of the data/file/whatever being mutated. Here's an example: ##Examples iex> user = Repo.insert!(%MyApp.User{
by ch4s3 9y ago
You would have to assert equality on the value of the data/file/whatever being mutated.
Here's an example:
##Examples
iex> user = Repo.insert!(%MyApp.User{id: 1, some_state: "whatever"})
...> {:ok, user} = MyApp.Users.DataTransformer.transform_with_effects(user)
...> Repo.one(where: MyApp.User.id == 1).some_state
"new state"