Changeset View
Changeset View
Standalone View
Standalone View
test/correction_plugin_test.exs
defmodule LSG.IRC.CorrectionPluginTest do | defmodule Nola.IRC.CorrectionPluginTest do | ||||
use ExUnit.Case | use ExUnit.Case | ||||
test "works" do | test "works" do | ||||
Context not available. | |||||
assert x == "correction: <oof> prout les salopes" | assert x == "correction: <oof> prout les salopes" | ||||
end, network: "test", channel: "#test"} | end, network: "test", channel: "#test"} | ||||
hist = %{text: "pouet les salopes", sender: %{nick: "oof"}} | hist = %{text: "pouet les salopes", sender: %{nick: "oof"}} | ||||
LSG.IRC.CorrectionPlugin.correction(message, %{"test/#test" => [hist]}) | Nola.IRC.CorrectionPlugin.correction(message, %{"test/#test" => [hist]}) | ||||
end | end | ||||
end | end | ||||
Context not available. |