summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMaksim Pechnikov <parallel588@gmail.com>2020-06-18 05:45:15 +0300
committerMaksim Pechnikov <parallel588@gmail.com>2020-06-18 05:45:15 +0300
commite4c61f1741f32fec3201f7d9a8403bc1bc329710 (patch)
treeb251adb33cab036815ba6fb456e5da21d922c58f /test
parentc9b5e3fedabd0b6ef3bb9e6108385ffa3857af54 (diff)
downloadpleroma-e4c61f1741f32fec3201f7d9a8403bc1bc329710.tar.gz
pleroma-e4c61f1741f32fec3201f7d9a8403bc1bc329710.zip
added test
Diffstat (limited to 'test')
-rw-r--r--test/fixtures/config/temp.secret.exs2
-rw-r--r--test/tasks/config_test.exs1
2 files changed, 3 insertions, 0 deletions
diff --git a/test/fixtures/config/temp.secret.exs b/test/fixtures/config/temp.secret.exs
index dc950ca30..fa8c7c7e8 100644
--- a/test/fixtures/config/temp.secret.exs
+++ b/test/fixtures/config/temp.secret.exs
@@ -9,3 +9,5 @@ config :quack, level: :info
config :pleroma, Pleroma.Repo, pool: Ecto.Adapters.SQL.Sandbox
config :postgrex, :json_library, Poison
+
+config :pleroma, :database, rum_enabled: true
diff --git a/test/tasks/config_test.exs b/test/tasks/config_test.exs
index e1bddfebf..99038e544 100644
--- a/test/tasks/config_test.exs
+++ b/test/tasks/config_test.exs
@@ -50,6 +50,7 @@ defmodule Mix.Tasks.Pleroma.ConfigTest do
config3 = ConfigDB.get_by_params(%{group: ":quack", key: ":level"})
refute ConfigDB.get_by_params(%{group: ":pleroma", key: "Pleroma.Repo"})
refute ConfigDB.get_by_params(%{group: ":postgrex", key: ":json_library"})
+ refute ConfigDB.get_by_params(%{group: ":pleroma", key: ":database"})
assert config1.value == [key: "value", key2: [Repo]]
assert config2.value == [key: "value2", key2: ["Activity"]]