Changing the use of config constants to the Rails configuration object
This commit is contained in:
parent
0e8f59c16f
commit
23d08c6749
11 changed files with 17 additions and 17 deletions
|
@ -4,7 +4,7 @@ RSpec.describe ApplicationHelper, type: :helper do
|
|||
let(:local_domain) { 'local.tld' }
|
||||
|
||||
before do
|
||||
stub_const('LOCAL_DOMAIN', local_domain)
|
||||
Rails.configuration.x.local_domain = local_domain
|
||||
end
|
||||
|
||||
describe '#unique_tag' do
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue