projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'develop' into issue/1023
[akkoma]
/
test
/
web
/
activity_pub
/
mrf
/
reject_non_public_test.exs
diff --git
a/test/web/activity_pub/mrf/reject_non_public_test.exs
b/test/web/activity_pub/mrf/reject_non_public_test.exs
index fc1d190bbe7a91e1952b2b9d02ea681b89253993..58b46b9a2cf41d0d960236306d1c4b3db97ce156 100644
(file)
--- a/
test/web/activity_pub/mrf/reject_non_public_test.exs
+++ b/
test/web/activity_pub/mrf/reject_non_public_test.exs
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 201
9
Pleroma Authors <https://pleroma.social/>
+# Copyright © 201
7-2020
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.ActivityPub.MRF.RejectNonPublicTest do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.ActivityPub.MRF.RejectNonPublicTest do
@@
-8,7
+8,7
@@
defmodule Pleroma.Web.ActivityPub.MRF.RejectNonPublicTest do
alias Pleroma.Web.ActivityPub.MRF.RejectNonPublic
alias Pleroma.Web.ActivityPub.MRF.RejectNonPublic
- clear_config([:mrf_rejectnonpublic])
+
setup do:
clear_config([:mrf_rejectnonpublic])
describe "public message" do
test "it's allowed when address is public" do
describe "public message" do
test "it's allowed when address is public" do
@@
-64,7
+64,7
@@
defmodule Pleroma.Web.ActivityPub.MRF.RejectNonPublicTest do
}
Pleroma.Config.put([:mrf_rejectnonpublic, :allow_followersonly], false)
}
Pleroma.Config.put([:mrf_rejectnonpublic, :allow_followersonly], false)
- assert {:reject,
nil
} = RejectNonPublic.filter(message)
+ assert {:reject,
_
} = RejectNonPublic.filter(message)
end
end
end
end
@@
-94,7
+94,7
@@
defmodule Pleroma.Web.ActivityPub.MRF.RejectNonPublicTest do
}
Pleroma.Config.put([:mrf_rejectnonpublic, :allow_direct], false)
}
Pleroma.Config.put([:mrf_rejectnonpublic, :allow_direct], false)
- assert {:reject,
nil
} = RejectNonPublic.filter(message)
+ assert {:reject,
_
} = RejectNonPublic.filter(message)
end
end
end
end
end
end