diff options
author | rinpatch <rinpatch@sdf.org> | 2019-12-21 11:56:24 +0000 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-12-21 11:56:24 +0000 |
commit | c51e93978ea2aa0f2d5bcc43bf7c925b2590eece (patch) | |
tree | a914a0129fcd6e42c2317254cec7411ec5045696 /test | |
parent | 7447c80e33a7d54c3d9f03f5c0be3fb738f1318b (diff) | |
parent | b9a87b1baa0650bfb4b699054304daae585a0e9a (diff) | |
download | pleroma-c51e93978ea2aa0f2d5bcc43bf7c925b2590eece.tar.gz |
Merge branch 'feature/custom-runtime-modules' into 'develop'
Add support for custom modules at runtime
Closes #1448
See merge request pleroma/pleroma!2039
Diffstat (limited to 'test')
-rw-r--r-- | test/fixtures/modules/runtime_module.ex | 9 | ||||
-rw-r--r-- | test/runtime_test.exs | 11 |
2 files changed, 20 insertions, 0 deletions
diff --git a/test/fixtures/modules/runtime_module.ex b/test/fixtures/modules/runtime_module.ex new file mode 100644 index 000000000..4711c3532 --- /dev/null +++ b/test/fixtures/modules/runtime_module.ex @@ -0,0 +1,9 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/> +# SPDX-License-Identifier: AGPL-3.0-only + +defmodule RuntimeModule do + @moduledoc """ + This is a dummy module to test custom runtime modules. + """ +end diff --git a/test/runtime_test.exs b/test/runtime_test.exs new file mode 100644 index 000000000..f7b6f23d4 --- /dev/null +++ b/test/runtime_test.exs @@ -0,0 +1,11 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/> +# SPDX-License-Identifier: AGPL-3.0-only + +defmodule Pleroma.RuntimeTest do + use ExUnit.Case, async: true + + test "it loads custom runtime modules" do + assert Code.ensure_compiled?(RuntimeModule) + end +end |