You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
do we really need authentication to see followers of some other user's . while in twitter also we can see user's followers even without following.
describe "GET /api/followers" do
before do
follower.follow user
user.reload
end
context "when user is unauthorized" do
it "does not return user followers list" do
get users_api_followers_path
expect(response.body).not_to include follower.name
end
end
context "when user is authorized" do
it "returns user followers list" do
sign_in user
get users_api_followers_path
expect(response.body).to include follower.name
end
The text was updated successfully, but these errors were encountered:
do we really need authentication to see followers of some other user's . while in twitter also we can see user's followers even without following.
The text was updated successfully, but these errors were encountered: