Skip to content

Instantly share code, notes, and snippets.

@bcardarella
Created April 6, 2016 06:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bcardarella/e43fb6044207b996fffefcfdc08c3097 to your computer and use it in GitHub Desktop.
Save bcardarella/e43fb6044207b996fffefcfdc08c3097 to your computer and use it in GitHub Desktop.
defmodule ExampleTest do
use ExUnit.Case
test "foobar" do
task_sup = Module.concat(__MODULE__, TaskSup)
children = [
Supervisor.Spec.worker(Task.Supervisor, [[name: task_sup]])
]
Supervisor.start_link(children, :one_for_one)
end
test "barbaz" do
task_sup = Module.concat(__MODULE__, TaskSup)
children = [
Supervisor.Spec.worker(Task.Supervisor, [[name: task_sup]])
]
Supervisor.start_link(children, :one_for_one)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment