diff options
author | href <href@random.sh> | 2021-09-01 10:30:18 +0200 |
---|---|---|
committer | href <href@random.sh> | 2021-09-01 10:30:18 +0200 |
commit | 75687711f35355bc30e4829439384aab28fcac6d (patch) | |
tree | 8f3256f472893c39720a684d390e890a152f7303 /test/correction_plugin_test.exs | |
parent | link: post_* callbacks; html & pdftitle. (diff) |
Commit all the changes that hasn't been committed + updates.
Diffstat (limited to 'test/correction_plugin_test.exs')
-rw-r--r-- | test/correction_plugin_test.exs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/correction_plugin_test.exs b/test/correction_plugin_test.exs new file mode 100644 index 0000000..6999b9f --- /dev/null +++ b/test/correction_plugin_test.exs @@ -0,0 +1,12 @@ +defmodule LSG.IRC.CorrectionPluginTest do + use ExUnit.Case + + test "works" do + message = %{text: "s/pouet/prout", replyfun: fn(x) -> + assert x == "correction: <oof> prout les salopes" + end, network: "test", channel: "#test"} + hist = %{text: "pouet les salopes", sender: %{nick: "oof"}} + LSG.IRC.CorrectionPlugin.correction(message, %{"test/#test" => [hist]}) + end + +end |