Last active
April 26, 2016 20:29
-
-
Save octosteve/fd64367a8b80414c3bfa445532e33012 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 ProcessesInElixirTest do | |
use ExUnit.Case | |
import ExUnit.CaptureIO | |
test "handles {:print_success} properly" do | |
pid = spawn(ProcessesInElixir, :loop, []) | |
assert capture_io(fn -> | |
send pid, {:print_success} | |
end) == "Success!" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment