ExUnit.Case.register_test/4 joins the test name with the name of the describe block to build a unique name and returns it as an atom. Since we use scenario.name already in the describe block, and we create only one test, we can give it a generic name.
This reduces the likelyhood to reach the erlang system limit of 255 characters in an atom.
ExUnit.Case.register_test/4
joins the test name with the name of the describe block to build a unique name and returns it as an atom. Since we usescenario.name
already in the describe block, and we create only one test, we can give it a generic name.This reduces the likelyhood to reach the erlang system limit of 255 characters in an atom.