Slip in a test to ensure we can use the atom syntax in mix task arguments
authorMark Felder <feld@FreeBSD.org>
Mon, 7 Dec 2020 17:21:06 +0000 (11:21 -0600)
committerMark Felder <feld@FreeBSD.org>
Mon, 7 Dec 2020 17:21:06 +0000 (11:21 -0600)
test/mix/tasks/pleroma/config_test.exs

index 1ea9f5790f010e6bfe871f11dff091e264a94f0c..0280d208de4111f50e9e6945414d0a56235ee0a1 100644 (file)
@@ -225,6 +225,12 @@ defmodule Mix.Tasks.Pleroma.ConfigTest do
           "config :web_push_encryption, :vapid_details, [subject: \"mailto:administrator@example.com\", public_key: \"BOsPL-_KjNnjj_RMvLeR3dTOrcndi4TbMR0cu56gLGfGaT5m1gXxSfRHOcC4Dd78ycQL1gdhtx13qgKHmTM5xAI\", private_key: \"Ism6FNdS31nLCA94EfVbJbDdJXCxAZ8cZiB1JQPN_t4\"]\r\n\r\n"
         ]
       }
+
+      # Ensure operations work when using atom syntax
+      MixTask.run(["dump", ":pleroma"])
+
+      assert_receive {:mix_shell, :info,
+                      ["config :pleroma, :instance, [name: \"Pleroma Test\"]\r\n\r\n"]}
     end
 
     test "dumping a specific key in a group" do