added test
authorMaksim Pechnikov <parallel588@gmail.com>
Thu, 18 Jun 2020 02:45:15 +0000 (05:45 +0300)
committerMaksim Pechnikov <parallel588@gmail.com>
Thu, 18 Jun 2020 02:45:15 +0000 (05:45 +0300)
test/fixtures/config/temp.secret.exs
test/tasks/config_test.exs

index dc950ca30833f65df60167482980bb08478391ad..fa8c7c7e85ef3ceefedc6d42f0c51d2f3ef340c2 100644 (file)
@@ -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
index e1bddfebf42172572a4a5a9524d08f04860c4c44..99038e544c900eb35d2d19d37047ffad9790f98f 100644 (file)
@@ -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"]]