Skip to content

Commit

Permalink
Remove Elixir 1.0 related code
Browse files Browse the repository at this point in the history
  • Loading branch information
ream88 committed Aug 18, 2020
1 parent 6158785 commit a6295b8
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions test/bypass_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,7 @@ defmodule BypassTest do
use ExUnit.Case
doctest Bypass

if Code.ensure_loaded?(ExUnit.CaptureLog) do
defdelegate capture_log(fun), to: ExUnit.CaptureLog
else
# Shim capture_log for Elixir 1.0
defp capture_log(fun) do
ExUnit.CaptureIO.capture_io(:user, fn ->
fun.()
Logger.flush()
end)
|> String.strip()
end
end
defdelegate capture_log(fun), to: ExUnit.CaptureLog

test "show ISSUE #51" do
Enum.each(
Expand Down

0 comments on commit a6295b8

Please sign in to comment.