Fix tests
authorRoman Chvanikov <chvanikoff@gmail.com>
Tue, 4 Jun 2019 00:07:49 +0000 (03:07 +0300)
committerRoman Chvanikov <chvanikoff@gmail.com>
Tue, 4 Jun 2019 00:07:49 +0000 (03:07 +0300)
config/test.exs
test/mix/tasks/pleroma.digest_test.exs

index 41cddb9bd8938b52b7d1f4c70e1fae552cb2b2a6..adb8742235d16f841de322749db12345503b713d 100644 (file)
@@ -67,6 +67,8 @@ rum_enabled = System.get_env("RUM_ENABLED") == "true"
 config :pleroma, :database, rum_enabled: rum_enabled
 IO.puts("RUM enabled: #{rum_enabled}")
 
+config :joken, default_signer: "yU8uHKq+yyAkZ11Hx//jcdacWc8yQ1bxAAGrplzB0Zwwjkp35v0RK9SO8WTPr6QZ"
+
 try do
   import_config "test.secret.exs"
 rescue
index 1a54ac35b53964a2ce21b6be2b0e9f736cf6e631..3dafe05fefcea09fc3fd3795b47711ad1ba2a1f5 100644 (file)
@@ -30,13 +30,13 @@ defmodule Mix.Tasks.Pleroma.DigestTest do
 
       Mix.Tasks.Pleroma.Digest.run(["test", user2.nickname])
 
+      assert_received {:mix_shell, :info, [message]}
+      assert message =~ "Digest email have been sent"
+
       assert_email_sent(
         to: {user2.name, user2.email},
         html_body: ~r/new mentions:/i
       )
-
-      assert_received {:mix_shell, :info, [message]}
-      assert message =~ "Digest email have been sent"
     end
   end
 end