Reduce hard coding of LOCAL_DOMAIN env value throughout tests (#35025)
This commit is contained in:
parent
f92ff6d699
commit
ab7f50ce4e
15 changed files with 69 additions and 37 deletions
|
|
@ -12,7 +12,7 @@ RSpec.describe Admin::SystemCheck::MediaPrivacyCheck do
|
|||
describe 'pass?' do
|
||||
context 'when the media cannot be listed' do
|
||||
before do
|
||||
stub_request(:get, /ngrok.io/).to_return(status: 200, body: 'a list of no files')
|
||||
stub_request(:get, /#{Regexp.quote(Rails.configuration.x.local_domain)}/).to_return(status: 200, body: 'a list of no files')
|
||||
end
|
||||
|
||||
it 'returns true' do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue