From 6de079a5af328d26d7cbc8daf3367d16c311fddb Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sun, 18 Dec 2016 12:17:45 +0100 Subject: Removing external hub completely, fix #333 fixing digit-only hashtags, removing web app capability from non-webapp pages --- spec/controllers/api/v1/follows_controller_spec.rb | 5 ----- spec/services/reblog_service_spec.rb | 5 ----- 2 files changed, 10 deletions(-) (limited to 'spec') diff --git a/spec/controllers/api/v1/follows_controller_spec.rb b/spec/controllers/api/v1/follows_controller_spec.rb index 1346141fa..97d69ab7b 100644 --- a/spec/controllers/api/v1/follows_controller_spec.rb +++ b/spec/controllers/api/v1/follows_controller_spec.rb @@ -18,7 +18,6 @@ RSpec.describe Api::V1::FollowsController, type: :controller do stub_request(:get, "https://quitter.no/avatar/7477-300-20160211190340.png").to_return(request_fixture('avatar.txt')) stub_request(:post, "https://quitter.no/main/push/hub").to_return(:status => 200, :body => "", :headers => {}) stub_request(:post, "https://quitter.no/main/salmon/user/7477").to_return(:status => 200, :body => "", :headers => {}) - stub_request(:post, "https://pubsubhubbub.superfeedr.com/").to_return(:status => 200, :body => "", :headers => {}) post :create, params: { uri: 'gargron@quitter.no' } end @@ -39,10 +38,6 @@ RSpec.describe Api::V1::FollowsController, type: :controller do expect(a_request(:post, "https://quitter.no/main/salmon/user/7477")).to have_been_made end - it 'notifies own hub' do - expect(a_request(:post, "https://pubsubhubbub.superfeedr.com/")).to have_been_made - end - it 'subscribes to remote hub' do expect(a_request(:post, "https://quitter.no/main/push/hub")).to have_been_made end diff --git a/spec/services/reblog_service_spec.rb b/spec/services/reblog_service_spec.rb index f0a40fe91..5f89169e9 100644 --- a/spec/services/reblog_service_spec.rb +++ b/spec/services/reblog_service_spec.rb @@ -8,7 +8,6 @@ RSpec.describe ReblogService do subject { ReblogService.new } before do - stub_request(:post, Rails.configuration.x.hub_url) stub_request(:post, 'http://salmon.example.com') subject.(alice, status) @@ -18,10 +17,6 @@ RSpec.describe ReblogService do expect(status.reblogs.count).to eq 1 end - it 'pings PubSubHubbub hubs' do - expect(a_request(:post, Rails.configuration.x.hub_url)).to have_been_made - end - it 'sends a Salmon slap for a remote reblog' do expect(a_request(:post, 'http://salmon.example.com')).to have_been_made end -- cgit