diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-26 15:12:57 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-26 15:18:21 +0100 |
commit | 2cb3dc5e5a1320efda89b258048e7bc3542a5744 (patch) | |
tree | e26a98c30def78ac9caab7b63c658b1f86c969b9 /spec/controllers/api/salmon_controller_spec.rb | |
parent | 4986c727d96b171d439351b0236fae7dbe86b695 (diff) |
Update hub URL and re-subscribe if hub URL changes
Diffstat (limited to 'spec/controllers/api/salmon_controller_spec.rb')
-rw-r--r-- | spec/controllers/api/salmon_controller_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/controllers/api/salmon_controller_spec.rb b/spec/controllers/api/salmon_controller_spec.rb index 6897caeeb..3d3a973d2 100644 --- a/spec/controllers/api/salmon_controller_spec.rb +++ b/spec/controllers/api/salmon_controller_spec.rb @@ -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')) |