0
0
Fork 0

Changing the use of config constants to the Rails configuration object

This commit is contained in:
Eugen Rochko 2016-02-29 20:06:39 +01:00
parent 0e8f59c16f
commit 23d08c6749
11 changed files with 17 additions and 17 deletions

View file

@ -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')