Skip to content

Commit

Permalink
Add test for trail inspection
Browse files Browse the repository at this point in the history
  • Loading branch information
fuelen committed Apr 21, 2024
1 parent 75fbd0f commit d4b2174
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/seed_factory/trail_test.exs
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d4b2174

Please sign in to comment.