Refactor tests for relay task and refresh cassetes

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2021-04-12 12:01:09 +02:00
parent 5f291336fd
commit ed7b53357f
8 changed files with 187 additions and 273 deletions

View File

@@ -11,6 +11,7 @@ defmodule Mix.Tasks.Mobilizon.ActorsTest do
@username "someone"
@domain "somewhere.tld"
@error "Error: No such actor"
describe "show actor" do
test "show existing local actor" do
@@ -50,7 +51,7 @@ defmodule Mix.Tasks.Mobilizon.ActorsTest do
test "show non-existing actor" do
Show.run([@username])
assert_received {:mix_shell, :error, [message]}
assert message =~ "Error: No such actor"
assert message =~ @error
end
end
end