diff --git a/test/seed_factory/trail_test.exs b/test/seed_factory/trail_test.exs new file mode 100644 index 0000000..8230f4d --- /dev/null +++ b/test/seed_factory/trail_test.exs @@ -0,0 +1,14 @@ +defmodule SeedFactory.TrailTest do + use ExUnit.Case, async: true + + test "inspect" do + trail = + :invite_user + |> SeedFactory.Trail.new() + |> SeedFactory.Trail.add_updated_by(:accept_invitation) + |> SeedFactory.Trail.add_updated_by(:update_profile) + |> SeedFactory.Trail.add_updated_by(:suspend_user) + + assert inspect(trail) == "#trail[:invite_user -> :accept_invitation -> :update_profile -> :suspend_user]" + end +end