defmodule Adolfo do
def name(), do: "adolfo"
endExUnit.start(auto_run: false)
defmodule AdolfoTest do
use ExUnit.Case, async: false
test "adolfo's name is adolfo" do
assert Adolfo.name() == "adolfo"
end
end
ExUnit.run()To run the tests, click "Reevaluate" in the Elixir cell below "Tests".
Thanks to David Bernheisel who pointed me to this blog post by Brooklyn Meyers.