Skip to content

Commit

Permalink
Update test/serum/plugin_test.exs
Browse files Browse the repository at this point in the history
  • Loading branch information
Dalgona committed Oct 19, 2019
1 parent f394f8b commit e25d72a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/serum/plugin_test.exs
Expand Up @@ -72,6 +72,24 @@ defmodule Serum.PluginTest do
end)
end

test "still handles deprecated callbacks" do
{:ok, _} = load_plugins([Serum.OldPlugin])
{:ok, io_opts} = IOProxy.config()

IOProxy.config(mute_err: true, mute_msg: true)

output =
capture_io(fn ->
assert :ok = build_started("", "")
assert :ok = build_succeeded("", "")
end)

assert output =~ "build_started"
assert output =~ "build_succeeded"

IOProxy.config(Keyword.new(io_opts))
end

describe "show_info/1" do
test "prints enough information about loaded plugins" do
{:ok, plugins} = load_plugins([Serum.DummyPlugin1, Serum.DummyPlugin2])
Expand Down

0 comments on commit e25d72a

Please sign in to comment.