diff options
author | Maksim Pechnikov <parallel588@gmail.com> | 2020-06-18 05:45:15 +0300 |
---|---|---|
committer | Maksim Pechnikov <parallel588@gmail.com> | 2020-06-18 05:45:15 +0300 |
commit | e4c61f1741f32fec3201f7d9a8403bc1bc329710 (patch) | |
tree | b251adb33cab036815ba6fb456e5da21d922c58f | |
parent | c9b5e3fedabd0b6ef3bb9e6108385ffa3857af54 (diff) | |
download | pleroma-e4c61f1741f32fec3201f7d9a8403bc1bc329710.tar.gz |
added test
-rw-r--r-- | test/fixtures/config/temp.secret.exs | 2 | ||||
-rw-r--r-- | test/tasks/config_test.exs | 1 |
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"]] |