X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=test%2Fpleroma%2Futils_test.exs;h=e2157367990e0c47e2b663bc23958ae7abbc1f15;hb=5a405bdadfbad41f08b609925300255b856c2f79;hp=460f7e0b5ceb2c9440b5a01c64d18577040770d9;hpb=b738f709532ff18845f5d8cc3888d0bd67f750ab;p=akkoma
diff --git a/test/pleroma/utils_test.exs b/test/pleroma/utils_test.exs
index 460f7e0b5..e21573679 100644
--- a/test/pleroma/utils_test.exs
+++ b/test/pleroma/utils_test.exs
@@ -1,5 +1,5 @@
# Pleroma: A lightweight social networking server
-# Copyright © 2017-2020 Pleroma Authors
+# Copyright © 2017-2021 Pleroma Authors
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.UtilsTest do
@@ -12,4 +12,11 @@ defmodule Pleroma.UtilsTest do
File.rm_rf(path)
end
end
+
+ describe "compile_dir/1" do
+ test "recursively compiles directories" do
+ {:ok, [DynamicModule.First, DynamicModule.Second], []} =
+ Pleroma.Utils.compile_dir("test/fixtures/runtime_modules")
+ end
+ end
end