From cd765f26a9610e160ffd347637fca40d7b80164e Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Fri, 11 Nov 2016 23:37:39 +0100 Subject: Upgrade ruby to 2.3.1 --- spec/services/reblog_service_spec.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'spec/services') diff --git a/spec/services/reblog_service_spec.rb b/spec/services/reblog_service_spec.rb index 25ea35e94..f0a40fe91 100644 --- a/spec/services/reblog_service_spec.rb +++ b/spec/services/reblog_service_spec.rb @@ -8,9 +8,7 @@ RSpec.describe ReblogService do subject { ReblogService.new } before do - Rails.configuration.x.hub_url = 'http://hub.example.com' - - stub_request(:post, 'http://hub.example.com') + stub_request(:post, Rails.configuration.x.hub_url) stub_request(:post, 'http://salmon.example.com') subject.(alice, status) @@ -21,7 +19,7 @@ RSpec.describe ReblogService do end it 'pings PubSubHubbub hubs' do - expect(a_request(:post, 'http://hub.example.com')).to have_been_made + expect(a_request(:post, Rails.configuration.x.hub_url)).to have_been_made end it 'sends a Salmon slap for a remote reblog' do -- cgit