diff options
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 | 
