aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/config_test.exs10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/config_test.exs b/test/config_test.exs
new file mode 100644
index 000000000..6d0f0a2d4
--- /dev/null
+++ b/test/config_test.exs
@@ -0,0 +1,10 @@
+defmodule Pleroma.ConfigTest do
+ use Pleroma.DataCase
+ alias Pleroma.Config
+
+ test "get returns the item at the path if there is one" do
+ Config.put([:instance, :name], "Plemora")
+ assert Config.get([:instance, :name]) == "Plemora"
+ assert Config.get([:unknown]) == nil
+ end
+end