diff options
Diffstat (limited to 'test/utils_test.exs')
-rw-r--r-- | test/utils_test.exs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/utils_test.exs b/test/utils_test.exs new file mode 100644 index 000000000..6134c21b5 --- /dev/null +++ b/test/utils_test.exs @@ -0,0 +1,13 @@ +defmodule Pleroma.UtilsTest do + use ExUnit.Case + + describe "command_available?" do + test "available command" do + assert Pleroma.Utils.command_available?("iex") === true + end + + test "unavailable command" do + assert Pleroma.Utils.command_available?("nonexistingcmd") === false + end + end +end |