X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=test%2Fpleroma%2Futils_test.exs;h=e2157367990e0c47e2b663bc23958ae7abbc1f15;hb=03a00d005a74c1f74f403ca31dff0b3eee20d386;hp=460f7e0b5ceb2c9440b5a01c64d18577040770d9;hpb=049ece1ef38f1aeb656a88ed1d15bf3d4a364e01;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