Commit abbf347d authored by Ivan Tashkinov's avatar Ivan Tashkinov
Browse files

[#394] View tests fix.

parent 7bcb6a18
...@@ -54,7 +54,8 @@ test "Represent a user account" do ...@@ -54,7 +54,8 @@ test "Represent a user account" do
note: "", note: "",
privacy: "public", privacy: "public",
sensitive: false sensitive: false
} },
tags: []
} }
assert expected == AccountView.render("account.json", %{user: user}) assert expected == AccountView.render("account.json", %{user: user})
...@@ -91,7 +92,8 @@ test "Represent a Service(bot) account" do ...@@ -91,7 +92,8 @@ test "Represent a Service(bot) account" do
note: "", note: "",
privacy: "public", privacy: "public",
sensitive: false sensitive: false
} },
tags: []
} }
assert expected == AccountView.render("account.json", %{user: user}) assert expected == AccountView.render("account.json", %{user: user})
......
...@@ -96,7 +96,8 @@ test "A user" do ...@@ -96,7 +96,8 @@ test "A user" do
"locked" => false, "locked" => false,
"default_scope" => "public", "default_scope" => "public",
"no_rich_text" => false, "no_rich_text" => false,
"fields" => [] "fields" => [],
"tags" => []
} }
assert represented == UserView.render("show.json", %{user: user}) assert represented == UserView.render("show.json", %{user: user})
...@@ -137,7 +138,8 @@ test "A user for a given other follower", %{user: user} do ...@@ -137,7 +138,8 @@ test "A user for a given other follower", %{user: user} do
"locked" => false, "locked" => false,
"default_scope" => "public", "default_scope" => "public",
"no_rich_text" => false, "no_rich_text" => false,
"fields" => [] "fields" => [],
"tags" => []
} }
assert represented == UserView.render("show.json", %{user: user, for: follower}) assert represented == UserView.render("show.json", %{user: user, for: follower})
...@@ -179,7 +181,8 @@ test "A user that follows you", %{user: user} do ...@@ -179,7 +181,8 @@ test "A user that follows you", %{user: user} do
"locked" => false, "locked" => false,
"default_scope" => "public", "default_scope" => "public",
"no_rich_text" => false, "no_rich_text" => false,
"fields" => [] "fields" => [],
"tags" => []
} }
assert represented == UserView.render("show.json", %{user: follower, for: user}) assert represented == UserView.render("show.json", %{user: follower, for: user})
...@@ -228,7 +231,8 @@ test "A blocked user for the blocker" do ...@@ -228,7 +231,8 @@ test "A blocked user for the blocker" do
"locked" => false, "locked" => false,
"default_scope" => "public", "default_scope" => "public",
"no_rich_text" => false, "no_rich_text" => false,
"fields" => [] "fields" => [],
"tags" => []
} }
blocker = Repo.get(User, blocker.id) blocker = Repo.get(User, blocker.id)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment