Commit c746087f authored by feld's avatar feld

Also remove Repo functions in the tests

parent b5a2d384
......@@ -89,8 +89,8 @@ test "allows to force-follow another user" do
"followed" => user.nickname
})
user = Repo.get(User, user.id)
follower = Repo.get(User, follower.id)
user = User.get_by_nickname(user.id)
follower = User.get_by_nickname(follower.id)
assert User.following?(follower, user)
end
......@@ -113,8 +113,8 @@ test "allows to force-unfollow another user" do
"followed" => user.nickname
})
user = Repo.get(User, user.id)
follower = Repo.get(User, follower.id)
user = User.get_by_nickname(user.id)
follower = User.get_by_nickname(follower.id)
refute User.following?(follower, user)
end
......
Markdown is supported
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