Created
April 6, 2016 06:29
-
-
Save bcardarella/e43fb6044207b996fffefcfdc08c3097 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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