Fix POST /api/v1/follows error when already following (#4878)
This commit is contained in:
parent
15b886a6f0
commit
c450ddb613
2 changed files with 11 additions and 0 deletions
|
@ -42,5 +42,10 @@ RSpec.describe Api::V1::FollowsController, type: :controller do
|
|||
it 'subscribes to remote hub' do
|
||||
expect(a_request(:post, "https://quitter.no/main/push/hub")).to have_been_made
|
||||
end
|
||||
|
||||
it 'returns http success if already following, too' do
|
||||
post :create, params: { uri: 'gargron@quitter.no' }
|
||||
expect(response).to have_http_status(:success)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue