defmodule LSG.IRC.CorrectionPluginTest do use ExUnit.Case test "works" do message = %{text: "s/pouet/prout", replyfun: fn(x) -> assert x == "correction: 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