about summary refs log tree commit diff
path: root/spec/services
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-02-29 20:06:39 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-02-29 20:06:39 +0100
commit23d08c6749eb142b24f22045f643d0591af579ff (patch)
treeb0a9a211e03e77be014ce64659e7674b7419b213 /spec/services
parent0e8f59c16fcb21301c736ecbc4424cb4c5388c42 (diff)
Changing the use of config constants to the Rails configuration object
Diffstat (limited to 'spec/services')
-rw-r--r--spec/services/reblog_service_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/services/reblog_service_spec.rb b/spec/services/reblog_service_spec.rb
index f12fdb837..25ea35e94 100644
--- a/spec/services/reblog_service_spec.rb
+++ b/spec/services/reblog_service_spec.rb
@@ -8,7 +8,7 @@ RSpec.describe ReblogService do
   subject { ReblogService.new }
 
   before do
-    stub_const('HUB_URL', 'http://hub.example.com')
+    Rails.configuration.x.hub_url = 'http://hub.example.com'
 
     stub_request(:post, 'http://hub.example.com')
     stub_request(:post, 'http://salmon.example.com')