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