diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-02-29 20:06:39 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-02-29 20:06:39 +0100 |
commit | 23d08c6749eb142b24f22045f643d0591af579ff (patch) | |
tree | b0a9a211e03e77be014ce64659e7674b7419b213 /spec | |
parent | 0e8f59c16fcb21301c736ecbc4424cb4c5388c42 (diff) |
Changing the use of config constants to the Rails configuration object
Diffstat (limited to 'spec')
-rw-r--r-- | spec/helpers/application_helper_spec.rb | 2 | ||||
-rw-r--r-- | spec/services/reblog_service_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/helpers/application_helper_spec.rb b/spec/helpers/application_helper_spec.rb index b36954b78..c19f636ca 100644 --- a/spec/helpers/application_helper_spec.rb +++ b/spec/helpers/application_helper_spec.rb @@ -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 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') |