0
0
Fork 0

Update hub URL and re-subscribe if hub URL changes

This commit is contained in:
Eugen Rochko 2016-11-26 15:12:57 +01:00
parent 4986c727d9
commit 2cb3dc5e5a
8 changed files with 23 additions and 23 deletions

View file

@ -6,6 +6,7 @@ RSpec.describe Api::SalmonController, type: :controller do
let(:account) { Fabricate(:user, account: Fabricate(:account, username: 'catsrgr8')).account }
before do
stub_request(:post, "https://pubsubhubbub.superfeedr.com/").to_return(:status => 200, :body => "", :headers => {})
stub_request(:get, "https://quitter.no/.well-known/host-meta").to_return(request_fixture('.host-meta.txt'))
stub_request(:get, "https://quitter.no/.well-known/webfinger?resource=acct:gargron@quitter.no").to_return(request_fixture('webfinger.txt'))
stub_request(:get, "https://quitter.no/api/statuses/user_timeline/7477.atom").to_return(request_fixture('feed.txt'))