We actually want the user id not nickname in the test...

This commit is contained in:
Mark Felder 2019-04-05 12:11:19 -05:00
parent c746087f57
commit fac76bfa35
1 changed files with 4 additions and 4 deletions

View File

@ -89,8 +89,8 @@ test "allows to force-follow another user" do
"followed" => user.nickname
})
user = User.get_by_nickname(user.id)
follower = User.get_by_nickname(follower.id)
user = User.get_by_id(user.id)
follower = User.get_by_id(follower.id)
assert User.following?(follower, user)
end
@ -113,8 +113,8 @@ test "allows to force-unfollow another user" do
"followed" => user.nickname
})
user = User.get_by_nickname(user.id)
follower = User.get_by_nickname(follower.id)
user = User.get_by_id(user.id)
follower = User.get_by_id(follower.id)
refute User.following?(follower, user)
end