diff options
| author | lain <lain@soykaf.club> | 2019-08-19 15:34:29 +0000 |
|---|---|---|
| committer | lain <lain@soykaf.club> | 2019-08-19 15:34:29 +0000 |
| commit | 222ac3bcbebe496ba8f0363adea40ef4fcf26886 (patch) | |
| tree | d46f6d2447183492d75983986ae2d57b75fdcb0b /test/conversation_test.exs | |
| parent | 49ae3191df2a7acfa741e93d6f5142f9cf27dc06 (diff) | |
| parent | a320358703db249ab20df5afd81c92fb42b8cadb (diff) | |
| download | pleroma-222ac3bcbebe496ba8f0363adea40ef4fcf26886.tar.gz pleroma-222ac3bcbebe496ba8f0363adea40ef4fcf26886.zip | |
Merge branch 'support/test_helpers' into 'develop'
added test helpers to clear config after tests
See merge request pleroma/pleroma!1547
Diffstat (limited to 'test/conversation_test.exs')
| -rw-r--r-- | test/conversation_test.exs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/test/conversation_test.exs b/test/conversation_test.exs index aa193e0d4..4e36494f8 100644 --- a/test/conversation_test.exs +++ b/test/conversation_test.exs @@ -11,14 +11,8 @@ defmodule Pleroma.ConversationTest do import Pleroma.Factory - setup_all do - config_path = [:instance, :federating] - initial_setting = Pleroma.Config.get(config_path) - - Pleroma.Config.put(config_path, true) - on_exit(fn -> Pleroma.Config.put(config_path, initial_setting) end) - - :ok + clear_config_all([:instance, :federating]) do + Pleroma.Config.put([:instance, :federating], true) end test "it goes through old direct conversations" do |
